Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/bin


Modified Files:
        ewl_entry_test.c 


Log Message:
Solaris doesn't like NULL being passed to printf.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/ewl_entry_test.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- ewl_entry_test.c    22 Nov 2005 16:09:59 -0000      1.7
+++ ewl_entry_test.c    30 Nov 2005 15:29:05 -0000      1.8
@@ -19,16 +19,22 @@
        char *s;
 
        s = ewl_text_text_get(EWL_TEXT(entry[0]));
-       printf("First entry covers: %s\n", s);
-       FREE(s);
+       if (s) {
+               printf("First entry covers: %s\n", s);
+               FREE(s);
+       }
 
        s = ewl_text_text_get(EWL_TEXT(entry[1]));
-       printf("Second entry covers: %s\n", s);
-       FREE(s);
+       if (s) {
+               printf("Second entry covers: %s\n", s);
+               FREE(s);
+       }
 
        s = ewl_text_text_get(EWL_TEXT(entry[2]));
-       printf("Third entry covers: %s\n", s);
-       FREE(s);
+       if (s) {
+               printf("Third entry covers: %s\n", s);
+               FREE(s);
+       }
 }
 
 static void




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to