Search
lxdream.org :: lxdream/src/config.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/config.c
changeset 480:d28c2992f5ee
prev475:49841795db97
next561:533f6b478071
author nkeynes
date Wed Oct 31 11:53:35 2007 +0000 (12 years ago)
permissions -rw-r--r--
last change Fix miscellaneous warnings
file annotate diff log raw
1.1 --- a/src/config.c Wed Oct 31 09:06:48 2007 +0000
1.2 +++ b/src/config.c Wed Oct 31 11:53:35 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: config.c,v 1.6 2007-10-31 09:06:48 nkeynes Exp $
1.6 + * $Id: config.c,v 1.7 2007-10-31 11:53:35 nkeynes Exp $
1.7 *
1.8 * User configuration support
1.9 *
1.10 @@ -21,6 +21,7 @@
1.11 #include <errno.h>
1.12 #include <stdlib.h>
1.13 #include <string.h>
1.14 +#include <glib/gmem.h>
1.15 #include <glib/gstrfuncs.h>
1.16 #include "dream.h"
1.17 #include "config.h"
1.18 @@ -56,6 +57,7 @@
1.19
1.20 gboolean lxdream_find_config()
1.21 {
1.22 + gboolean result = TRUE;
1.23 char *home = getenv("HOME");
1.24 if( lxdream_config_save_filename == NULL ) {
1.25 lxdream_config_save_filename = g_strdup_printf("%s/.%s", home, DEFAULT_CONFIG_FILENAME);
1.26 @@ -69,8 +71,10 @@
1.27 lxdream_config_load_filename = g_strdup("./" DEFAULT_CONFIG_FILENAME);
1.28 } else {
1.29 lxdream_config_load_filename = g_strdup(lxdream_config_save_filename);
1.30 + result = FALSE;
1.31 }
1.32 - }
1.33 + }
1.34 + return result;
1.35 }
1.36
1.37 void lxdream_set_config_filename( const gchar *filename )
.