[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Ayttm-commits] CVS: ayttm/src util.c,1.56,1.57
From: |
Philip S Tellis <address@hidden> |
Subject: |
[Ayttm-commits] CVS: ayttm/src util.c,1.56,1.57 |
Date: |
Fri, 21 Mar 2003 06:42:08 -0500 |
Update of /cvsroot/ayttm/ayttm/src
In directory subversions:/tmp/cvs-serv31100/src
Modified Files:
util.c
Log Message:
handle empty strings in convert_eol correctly
Index: util.c
===================================================================
RCS file: /cvsroot/ayttm/ayttm/src/util.c,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -r1.56 -r1.57
--- util.c 20 Mar 2003 10:06:40 -0000 1.56
+++ util.c 21 Mar 2003 11:42:05 -0000 1.57
@@ -423,7 +423,10 @@
char * temp;
char **data=NULL;
int i;
-
+
+ if(!text || !*text)
+ return g_strdup("");
+
if (strstr (text, "\r\n") != NULL)
return g_strdup(text);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Ayttm-commits] CVS: ayttm/src util.c,1.56,1.57,
Philip S Tellis <address@hidden> <=
- Prev by Date:
[Ayttm-commits] CVS: ayttm ChangeLog,1.360,1.361 configure.in,1.355,1.356
- Next by Date:
[Ayttm-commits] CVS: ayttm ChangeLog,1.361,1.362 configure.in,1.356,1.357
- Previous by thread:
[Ayttm-commits] CVS: ayttm ChangeLog,1.360,1.361 configure.in,1.355,1.356
- Next by thread:
[Ayttm-commits] CVS: ayttm ChangeLog,1.361,1.362 configure.in,1.356,1.357
- Index(es):