summaryrefslogtreecommitdiff
path: root/daemon/gdm-session-linux-auditor.c
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2008-02-07 21:40:29 +0000
committerRay Strode <halfline@src.gnome.org>2008-02-07 21:40:29 +0000
commit875c0324d8a11c3f6e670bcc17bcfe09a1183ed9 (patch)
tree7ae78bddd50019cff9e9e5f6bbb55a7dd236d478 /daemon/gdm-session-linux-auditor.c
parenta87bb010f5d5d8ecbe365a4795e316b4fcb1251b (diff)
downloadgdm-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/gdm-session-linux-auditor.c')
-rw-r--r--daemon/gdm-session-linux-auditor.c2
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;
}