Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/eet

Dir     : e17/libs/eet/src/lib


Modified Files:
        eet_data.c 


Log Message:


null data struct write out safe...

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/eet/src/lib/eet_data.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- eet_data.c  11 Jun 2003 09:09:17 -0000      1.6
+++ eet_data.c  16 Jun 2003 13:22:48 -0000      1.7
@@ -1672,9 +1672,12 @@
                                        ((char *)data_in) + ede->offset, 
                                        &size);
             else if (ede->subtype)
-              data = eet_data_descriptor_encode(ede->subtype, 
-                                                *((char **)(((char *)data_in) + 
ede->offset)),
-                                                &size);
+              {
+                 if (*((char **)(((char *)data_in) + ede->offset)))
+                   data = eet_data_descriptor_encode(ede->subtype, 
+                                                     *((char **)(((char *)data_in) + 
ede->offset)),
+                                                     &size);
+              }
             if (data) 
               {
                  echnk = eet_data_chunk_new(data, size, ede->name);




-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to