mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 07:11:41 +00:00
Fix some warnings found by qfcc's flow analysis.
Ok, maybe it works too well? Nah, not really. It's nice having proper unisnitialized checks on structs.
This commit is contained in:
parent
aeed16109f
commit
cd62755ce4
1 changed files with 4 additions and 0 deletions
|
@ -49,6 +49,7 @@ class_from_plist (PLDictionary *pldict)
|
|||
local SEL sel;
|
||||
local PLItem *item;
|
||||
|
||||
ret.quaternion_val = nil; //FIXME should be ret = nil;
|
||||
classname = [(PLString*) [pldict getObjectForKey:"Class"] string];
|
||||
class = obj_lookup_class (classname);
|
||||
if (!class) {
|
||||
|
@ -97,6 +98,7 @@ array_from_plist (PLArray *plarray)
|
|||
local int i, count;
|
||||
local @param ret;
|
||||
|
||||
ret.quaternion_val = nil; //FIXME should be ret = nil;
|
||||
array = [[Array alloc] init];
|
||||
count = [plarray count];
|
||||
for (i = 0; i < count; i++) {
|
||||
|
@ -140,6 +142,7 @@ string_from_plist (PLString *plstring)
|
|||
local @param ret;
|
||||
local string str = [plstring string];
|
||||
|
||||
ret.quaternion_val = nil; //FIXME should be ret = nil;
|
||||
if (str_mid (str, 0, 1) == "[")
|
||||
return rect_from_plist (plstring);
|
||||
|
||||
|
@ -152,6 +155,7 @@ object_from_plist (PLItem *plist)
|
|||
{
|
||||
local @param ret;
|
||||
|
||||
ret.quaternion_val = nil; //FIXME should be ret = nil;
|
||||
switch ([plist type]) {
|
||||
case QFDictionary:
|
||||
return class_from_plist ((PLDictionary *) plist);
|
||||
|
|
Loading…
Reference in a new issue