[ekg2-commit] ekg2: commands.c (HEAD) [peres]

CVS commit cvs w toxygen.net
Sob, 24 Lis 2007, 15:48:59 CET


Module name:	ekg2
Changes by:	peres	2007-11-24 15:48:57

Modified files:
	commands.c

Log message:
Be sure 'photo' is NULL-initialized.

Index: commands.c
===================================================================
RCS file: /home/cvs/ekg2/plugins/jabber/commands.c,v
diff -d -u -r1.209 -r1.210
--- commands.c	2 Nov 2007 00:12:07 -0000	1.209
+++ commands.c	24 Nov 2007 14:48:56 -0000	1.210
@@ -1129,7 +1129,7 @@
 #define strfix(s) (s ? s : "")
 	jabber_private_t *j = session_private_get(session);
 	char *pub[pub_sz] = { NULL, NULL, NULL, NULL, NULL, NULL };
-	char *photo;
+	char *photo = NULL;
 	const int hadphoto = !!session_get(session, "photo_hash");
 	int i;
 


Więcej informacji o liście dyskusyjnej ekg2-commit