From f56b1b3353677fa8cc901d554063c8c952f25cc2 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Fri, 10 Dec 2004 16:24:00 +0000 Subject: [PATCH] oops! SVN revision: 12434 --- src/bin/e_apps.c | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/src/bin/e_apps.c b/src/bin/e_apps.c index fbe726df6..b0dc08d82 100644 --- a/src/bin/e_apps.c +++ b/src/bin/e_apps.c @@ -362,8 +362,13 @@ _e_app_fields_fill(E_App *a, char *path) lang = NULL; ef = eet_open(a->path, EET_FILE_MODE_READ); if (!ef) return; - if (lang) snprintf(buf, sizeof(buf), "app/info/name[%s]", lang); - v = eet_read(ef, buf, &size); + if (lang) + { + snprintf(buf, sizeof(buf), "app/info/name[%s]", lang); + v = eet_read(ef, buf, &size); + } + else + v = NULL; if (v) { str = malloc(size + 1); @@ -384,8 +389,13 @@ _e_app_fields_fill(E_App *a, char *path) free(v); } } - if (lang) snprintf(buf, sizeof(buf), "app/info/generic[%s]", lang); - v = eet_read(ef, buf, &size); + if (lang) + { + snprintf(buf, sizeof(buf), "app/info/generic[%s]", lang); + v = eet_read(ef, buf, &size); + } + else + v = NULL; if (v) { str = malloc(size + 1); @@ -406,8 +416,13 @@ _e_app_fields_fill(E_App *a, char *path) free(v); } } - if (lang) snprintf(buf, sizeof(buf), "app/info/comment[%s]", lang); - v = eet_read(ef, buf, &size); + if (lang) + { + snprintf(buf, sizeof(buf), "app/info/comment[%s]", lang); + v = eet_read(ef, buf, &size); + } + else + v = NULL; if (v) { str = malloc(size + 1);