mirror of
https://github.com/ostreedev/ostree.git
synced 2025-01-06 17:18:25 +03:00
fix: Avoid wild pointers
Pointer command is dangerous if there is no assignment. Log: Avoid wild pointers
This commit is contained in:
parent
420952595b
commit
28174970c7
@ -148,7 +148,6 @@ ostree_run (int argc,
|
||||
OstreeCommand *commands,
|
||||
GError **res_error)
|
||||
{
|
||||
OstreeCommand *command;
|
||||
GError *error = NULL;
|
||||
GCancellable *cancellable = NULL;
|
||||
#ifndef BUILDOPT_TSAN
|
||||
@ -187,7 +186,7 @@ ostree_run (int argc,
|
||||
|
||||
argc = out;
|
||||
|
||||
command = commands;
|
||||
OstreeCommand *command = commands;
|
||||
while (command->name)
|
||||
{
|
||||
if (g_strcmp0 (command_name, command->name) == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user