[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[giFTcurs-commits] giFTcurs/src parse.c
From: |
Göran Weinholt |
Subject: |
[giFTcurs-commits] giFTcurs/src parse.c |
Date: |
Tue, 04 Nov 2003 10:37:50 -0500 |
CVSROOT: /cvsroot/giftcurs
Module name: giFTcurs
Branch:
Changes by: Göran Weinholt <address@hidden> 03/11/04 10:37:49
Modified files:
src : parse.c
Log message:
Return NULL if NULL is passed to convert_to_locale()
Patches:
Index: giFTcurs/src/parse.c
diff -u giFTcurs/src/parse.c:1.151 giFTcurs/src/parse.c:1.152
--- giFTcurs/src/parse.c:1.151 Tue Nov 4 01:58:12 2003
+++ giFTcurs/src/parse.c Tue Nov 4 10:37:48 2003
@@ -18,7 +18,7 @@
* along with giFTcurs; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
*
- * $Id: parse.c,v 1.151 2003/11/04 06:58:12 saturn Exp $
+ * $Id: parse.c,v 1.152 2003/11/04 15:37:48 weinholt Exp $
*/
#include "giftcurs.h"
@@ -318,6 +318,9 @@
{
const char *from, *to;
char *tmp;
+
+ if (!str)
+ return NULL;
if (G_UNLIKELY(utf8)) {
/* TODO: autodetect the locale somehow? */
- [giFTcurs-commits] giFTcurs/src parse.c,
Göran Weinholt <=