From 0784943ae38a6a8078aca81f6ce4bbce2fa3113d Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 18 Nov 2011 19:25:19 +0000 Subject: [PATCH] account for "" with getenv for hahas SVN revision: 65390 --- src/bin/e_fm/e_fm_main_eeze.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/e_fm/e_fm_main_eeze.c b/src/bin/e_fm/e_fm_main_eeze.c index 80d45f0fb..76a0fbbc5 100644 --- a/src/bin/e_fm/e_fm_main_eeze.c +++ b/src/bin/e_fm/e_fm_main_eeze.c @@ -541,7 +541,7 @@ _scanner_poll(void *data __UNUSED__) if (svr) return EINA_FALSE; tmp = getenv("TMPDIR"); - if (!tmp) tmp = "/tmp"; + if ((!tmp) || (!tmp[0])) tmp = "/tmp"; snprintf(buf, sizeof(buf), "%s/.ecore_service|eeze_scanner|0", tmp); if (!stat(buf, &st)) @@ -699,7 +699,7 @@ _e_fm_main_eeze_init(void) eet_setup(); tmp = getenv("TMPDIR"); - if (!tmp) tmp = "/tmp"; + if ((!tmp) || (!tmp[0])) tmp = "/tmp"; snprintf(buf, sizeof(buf), "%s/.ecore_service|eeze_scanner|0", tmp); if (stat(buf, &st))