Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/eet
Dir : e17/libs/eet/src/lib
Modified Files:
eet_data.c
Log Message:
be null string pointer safe
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/eet/src/lib/eet_data.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- eet_data.c 3 Feb 2003 01:07:58 -0000 1.5
+++ eet_data.c 11 Jun 2003 09:09:17 -0000 1.6
@@ -959,9 +959,10 @@
{
char *s, *d;
int len;
+ const char *empty_s = "";
- if (!src) src = "";
s = (char *)(*((char **)src));
+ if (!s) s = (char *)empty_s;
len = strlen(s);
d = malloc(len + 1);
if (!d) return NULL;
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs