Enlightenment CVS committal
Author : sebastid
Project : e17
Module : apps/e_utils
Dir : e17/apps/e_utils/src/bin/emblem
Modified Files:
main.c
Log Message:
Headers and macro
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e_utils/src/bin/emblem/main.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- main.c 5 Sep 2005 11:53:24 -0000 1.7
+++ main.c 5 Sep 2005 15:30:25 -0000 1.8
@@ -4,6 +4,8 @@
#include <stdio.h>
#include <string.h>
+#define IF_FREE(x) { if (x) free(x); x = NULL; }
+
static void usage(void);
static int
@@ -81,7 +83,7 @@
snprintf(theme, sizeof(theme), PACKAGE_DATA_DIR"/data/emblem/%s",
em->theme);
if (ecore_file_exists(theme))
{
- FREE(em->theme);
+ IF_FREE(em->theme);
em->theme = strdup(theme);
}
else
@@ -89,7 +91,7 @@
snprintf(theme, sizeof(theme),
PACKAGE_DATA_DIR"/data/emblem/%s.edj", em->theme);
if (ecore_file_exists(theme))
{
- FREE(em->theme);
+ IF_FREE(em->theme);
em->theme = strdup(theme);
}
else
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs