|
From: Crossfire C. r. messages.
<cro...@li...> - 2020-11-25 17:42:23
|
Revision: 21565
http://sourceforge.net/p/crossfire/code/21565
Author: partmedia
Date: 2020-11-25 17:42:21 +0000 (Wed, 25 Nov 2020)
Log Message:
-----------
Don't crash on NULL
Modified Paths:
--------------
client/trunk/gtk-v2/src/config.c
Modified: client/trunk/gtk-v2/src/config.c
===================================================================
--- client/trunk/gtk-v2/src/config.c 2020-11-24 22:07:54 UTC (rev 21564)
+++ client/trunk/gtk-v2/src/config.c 2020-11-25 17:42:21 UTC (rev 21565)
@@ -83,7 +83,7 @@
*/
tmp = gtk_rc_get_default_files();
i = 0;
- while (tmp[i]) {
+ while (tmp && tmp[i]) {
i++;
}
/*
@@ -101,7 +101,7 @@
* ${HOME}/.gtkrc.en, etc.
*/
i = 0;
- while (tmp[i]) {
+ while (tmp && tmp[i]) {
default_files[i] = g_strdup(tmp[i]);
i++;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|