WINGs: correct possible null pointer dereference
commit39e13982579c9be433a7a7185c2e69e30f91d5db
authorDavid Maciejak <david.maciejak@gmail.com>
Sun, 27 Jul 2014 06:15:51 +0000 (27 14:15 +0800)
committerCarlos R. Mafra <crmafra@gmail.com>
Sun, 27 Jul 2014 15:45:38 +0000 (27 09:45 -0600)
tree16701bed5d2c22957e507943a9b7d81c991a5075
parentabc2d13f7db338fd8d1e436ea6c0c40c3eca9f76
WINGs: correct possible null pointer dereference

As reported by cppcheck:

[WINGs/array.c:129] -> [WINGs/array.c:131]: (warning) Possible null pointer dereference: array - otherwise it is redundant to check it against null.
[WINGs/array.c:151] -> [WINGs/array.c:153]: (warning) Possible null pointer dereference: array - otherwise it is redundant to check it against null.
[WINGs/array.c:170] -> [WINGs/array.c:172]: (warning) Possible null pointer dereference: array - otherwise it is redundant to check it against null.

This patch is checking that the var name 'array' exists.
WINGs/array.c