[anjuta/gnome-3-0] project-wizard: Fix a crash when starting project wizard due to my latest changes
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta/gnome-3-0] project-wizard: Fix a crash when starting project wizard due to my latest changes
- Date: Fri, 10 Jun 2011 15:50:34 +0000 (UTC)
commit f6b8291c0379334ee4a67791323db069070e8307
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]