raster pushed a commit to branch master.
commit 4bc64a4ff21c7d27a7f6ab5fc5bbaa36f934de0f
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date: Tue May 28 15:19:33 2013 +0900
fix xdg config changes (not enabled yet but changes added segv).
---
src/lib/elm_config.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/lib/elm_config.c b/src/lib/elm_config.c
index 3ac06fb..5f119dc 100644
--- a/src/lib/elm_config.c
+++ b/src/lib/elm_config.c
@@ -516,7 +516,7 @@ _elm_user_dir_snprintf(char *dst,
const char *fmt,
...)
{
- const char *home;
+ const char *home = NULL;
size_t user_dir_len, off;
va_list ap;
@@ -537,7 +537,7 @@ _elm_user_dir_snprintf(char *dst,
else
#endif
{
- if (!home) home = getenv("HOME");
+ home = getenv("HOME");
if (!home) home = "/";
#ifdef DOXDG
user_dir_len = eina_str_join_len
--
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may