SF.net SVN: geany:[3481] trunk/src/main.c

eht16 at users.sourceforge.net eht16 at xxxxx
Sat Jan 17 18:46:45 UTC 2009


Revision: 3481
          http://geany.svn.sourceforge.net/geany/?rev=3481&view=rev
Author:   eht16
Date:     2009-01-17 18:46:44 +0000 (Sat, 17 Jan 2009)

Log Message:
-----------
Add a NULL check for locale filename string just to be safe.

Modified Paths:
--------------
    trunk/src/main.c

Modified: trunk/src/main.c
===================================================================
--- trunk/src/main.c	2009-01-17 18:44:38 UTC (rev 3480)
+++ trunk/src/main.c	2009-01-17 18:46:44 UTC (rev 3481)
@@ -805,7 +805,7 @@
 
 	locale_filename = utils_get_locale_from_utf8(project_prefs.session_file);
 
-	if (*locale_filename)
+	if (NZV(locale_filename))
 		project_load_file(locale_filename);
 
 	g_free(locale_filename);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list