[anjuta] project-wizard: Fix a crash when starting project wizard due to my latest changes



commit 58dc8444bbf5eb6e61bf35d3582410e462c19e59
Author: Sébastien Granjoux <seb sfo free fr>
Date:   Thu Jun 2 15:59:49 2011 +0200

    project-wizard: Fix a crash when starting project wizard due to my latest changes

 plugins/project-wizard/autogen.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/project-wizard/autogen.c b/plugins/project-wizard/autogen.c
index 1b521f5..21d388b 100644
--- a/plugins/project-wizard/autogen.c
+++ b/plugins/project-wizard/autogen.c
@@ -113,7 +113,7 @@ npw_check_autogen (void)
 			match_strings = g_match_info_fetch_all (minfo);
 			ver[0] = g_ascii_strtoll (match_strings[1], NULL, 10);
 			ver[1] = g_ascii_strtoll (match_strings[2], NULL, 10);
-			ver[2] = g_ascii_strtoll (match_strings[3], NULL, 10); /* match_strings[3] may be NULL */
+			if (match_strings[3] != NULL) ver[2] = g_ascii_strtoll (match_strings[3], NULL, 10);
 
 			g_strfreev (match_strings);
 		}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]