[ekg2-commit] ekg2: xmsg.c (HEAD) [peres]
CVS commit
cvs w toxygen.net
Pon, 7 Maj 2007, 09:43:20 CEST
Module name: ekg2
Changes by: peres 2007-05-07 09:43:18
Modified files:
xmsg.c
Log message:
Blah.
Index: xmsg.c
===================================================================
RCS file: /home/cvs/ekg2/plugins/xmsg/xmsg.c,v
diff -d -u -r1.25 -r1.26
--- xmsg.c 6 May 2007 23:11:40 -0000 1.25
+++ xmsg.c 7 May 2007 07:43:17 -0000 1.26
@@ -353,8 +353,10 @@
char *tmp = xstrndup(msg, fs); /* temporary workaround for mmap() problems */
if (charset) {
- msgx = ekg_convert_string(tmp, charset, NULL);
- xfree(tmp);
+ if (!(msgx = ekg_convert_string(tmp, charset, NULL)))
+ msgx = tmp;
+ else
+ xfree(tmp);
} else
msgx = tmp;
}
Więcej informacji o liście dyskusyjnej ekg2-commit