[Geany-devel] either uninitialized variable or a redundant condition
Daniel Marjamäki
daniel.marjamaki at xxxxx
Sat Aug 6 14:03:13 UTC 2011
Hi!
[src/tools.c:127]: (information) Suspecting that uninitialized
variable is used: stock_id
Either there is an "uninitialized variable" issue or else there is a
redundant condition.
In the file src/tools.c.
The condition that might be redundant is on line 111:
else if (g_shell_parse_argv(cmd, &argc, &argv, &err))
If the condition is always true, then the "else if" could be converted
to a "else" and the function call could be moved into the "else" body.
If the condition can be false then stock_id will be uninitialized when
it's used on line 127.
Best regards,
Daniel
More information about the Devel
mailing list