diff options
author | Ray Strode <rstrode@redhat.com> | 2008-02-07 21:40:29 +0000 |
---|---|---|
committer | Ray Strode <halfline@src.gnome.org> | 2008-02-07 21:40:29 +0000 |
commit | 875c0324d8a11c3f6e670bcc17bcfe09a1183ed9 (patch) | |
tree | 7ae78bddd50019cff9e9e5f6bbb55a7dd236d478 /daemon | |
parent | a87bb010f5d5d8ecbe365a4795e316b4fcb1251b (diff) | |
download | gdm-875c0324d8a11c3f6e670bcc17bcfe09a1183ed9.tar.gz |
strdup "uknown" string so a literal doesn't get freed later
2008-02-07 Ray Strode <rstrode@redhat.com>
* daemon/gdm-session-linux-auditor.c
(gdm_session_linux_auditor_report_login_attempt):
strdup "uknown" string so a literal doesn't get
freed later
svn path=/trunk/; revision=5725
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/gdm-session-linux-auditor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/gdm-session-linux-auditor.c b/daemon/gdm-session-linux-auditor.c index d9b6a093..0c0cf79a 100644 --- a/daemon/gdm-session-linux-auditor.c +++ b/daemon/gdm-session-linux-auditor.c @@ -64,7 +64,7 @@ gdm_session_linux_auditor_report_login_attempt (GdmSessionAuditor *auditor, if (username != NULL) { pw = getpwnam (username); } else { - username = "unknown"; + username = g_strdup ("unknown"); pw = NULL; } |