Fixed a crash bug if starting with no uqm.cfg

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2713 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
mcmartin
2007-03-29 03:53:15 +00:00
parent 4b3aa77450
commit f69b7bddec
2 changed files with 8 additions and 2 deletions
+4 -2
View File
@@ -1,6 +1,8 @@
Changes towards version 0.7: Changes towards version 0.7:
- Support for 3do "ship spin" videos (TODO: Update with bug # and proper - Fixed a crash on startup if uqm.cfg did not exist, flagged and fixed
credits) by jdorje - MIchael
- Support for 3do "ship spin" videos (Bug #733, patch by Jan Lönnberg)
-Michael
- Major refactoring of input configuration to use the resource system - Major refactoring of input configuration to use the resource system
instead of custom files (bugs #961 and #949) - Michael instead of custom files (bugs #961 and #949) - Michael
- Added ability to remove entries from ALists - Michael - Added ability to remove entries from ALists - Michael
+4
View File
@@ -115,6 +115,10 @@ const char *
Alist_RemoveString (alist *m, const char *key) Alist_RemoveString (alist *m, const char *key)
{ {
alist_entry *todel = NULL; alist_entry *todel = NULL;
if (!m->first)
{
return NULL;
}
if (!strcmp (m->first->key, key)) if (!strcmp (m->first->key, key))
{ {
todel = m->first; todel = m->first;