Enlightenment CVS committal Author : raster Project : e17 Module : proto
Dir : e17/proto/e_dbus/src/lib/hal Modified Files: e_hal_util.c Log Message: make the param reader more robust =================================================================== RCS file: /cvs/e/e17/proto/e_dbus/src/lib/hal/e_hal_util.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- e_hal_util.c 15 Mar 2007 08:59:19 -0000 1.1 +++ e_hal_util.c 14 Jun 2007 15:53:25 -0000 1.2 @@ -56,6 +56,7 @@ { E_Hal_Property *prop; if (err) *err = 0; + if (!properties->properties) return NULL; prop = ecore_hash_get(properties->properties, key); if (prop) return strdup(prop->val.s); @@ -68,6 +69,7 @@ { E_Hal_Property *prop; if (err) *err = 0; + if (!properties->properties) return 0; prop = ecore_hash_get(properties->properties, key); if (prop) return prop->val.b; @@ -80,6 +82,7 @@ { E_Hal_Property *prop; if (err) *err = 0; + if (!properties->properties) return 0; prop = ecore_hash_get(properties->properties, key); if (prop) return prop->val.i; @@ -92,6 +95,7 @@ { E_Hal_Property *prop; if (err) *err = 0; + if (!properties->properties) return 0; prop = ecore_hash_get(properties->properties, key); if (prop) return prop->val.u64; @@ -104,6 +108,7 @@ { E_Hal_Property *prop; if (err) *err = 0; + if (!properties->properties) return 0; prop = ecore_hash_get(properties->properties, key); if (prop) return prop->val.d; @@ -116,6 +121,7 @@ { E_Hal_Property *prop; if (err) *err = 0; + if (!properties->properties) return NULL; prop = ecore_hash_get(properties->properties, key); if (prop) return prop->val.strlist; ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs