git.ucc.asn.au
/
tpg
/
acess2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e019a9
)
Fixed bug in kernel script parsing (uninitialised value)
author
John Hodge
<
[email protected]
>
Wed, 2 Mar 2011 05:03:31 +0000
(13:03 +0800)
committer
John Hodge
<
[email protected]
>
Wed, 2 Mar 2011 05:03:31 +0000
(13:03 +0800)
Kernel/system.c
patch
|
blob
|
history
diff --git
a/Kernel/system.c
b/Kernel/system.c
index
8b457b4
..
a996038
100644
(file)
--- a/
Kernel/system.c
+++ b/
Kernel/system.c
@@
-548,6
+548,7
@@
tConfigFile *System_Int_ParseFile(char *FileData)
start = ptr;
ret->Lines[i].nParts = 0;
+ ret->Lines[i].Parts = NULL;
// Count parts
for(;;)
@@
-640,6
+641,12
@@
tConfigFile *System_Int_ParseFile(char *FileData)
}
}
+ if( i < ret->nLines ) {
+ ret->Lines[i].nParts = 0;
+ ret->Lines[i].Parts = NULL;
+ Log_Log("System", "Cleaning up final empty line");
+ }
+
LEAVE('p', ret);
return ret;
}
UCC
git Repository :: git.ucc.asn.au