ayttm-commits
[Top][All Lists]
Advanced

[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);
        





reply via email to

[Prev in Thread] Current Thread [Next in Thread]