changeset 4210:e11393a176d5

[gaim-migrate @ 4447] when you create a string, its a good thing to store it somewhere. niqueco caught this committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Mon, 06 Jan 2003 00:23:47 +0000
parents 814023d5d0b3
children 468f1ce401db
files src/session.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/session.c	Sun Jan 05 23:37:02 2003 +0000
+++ b/src/session.c	Mon Jan 06 00:23:47 2003 +0000
@@ -27,6 +27,8 @@
 #include <config.h>
 #endif
 
+#include <string.h>
+
 #include "gaim.h"
 
 #ifdef USE_SM
@@ -292,11 +294,11 @@
 	session_managed = TRUE;
 	gdk_set_sm_client_id(client_id);
 
-	g_strdup_printf("%d", (int) getpid());
+	tmp = g_strdup_printf("%d", (int) getpid());
 	session_set_string(session, SmProcessID, tmp);
 	g_free(tmp);
 
-	g_strdup(g_get_user_name());
+	tmp = g_strdup(g_get_user_name());
 	session_set_string(session, SmUserID, tmp);
 	g_free(tmp);