Merge pull request #2406 from liujianqiang-niu/main
fix: Avoid wild pointers
This commit is contained in:
commit
5023278293
|
|
@ -148,7 +148,6 @@ ostree_run (int argc,
|
||||||
OstreeCommand *commands,
|
OstreeCommand *commands,
|
||||||
GError **res_error)
|
GError **res_error)
|
||||||
{
|
{
|
||||||
OstreeCommand *command;
|
|
||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
GCancellable *cancellable = NULL;
|
GCancellable *cancellable = NULL;
|
||||||
#ifndef BUILDOPT_TSAN
|
#ifndef BUILDOPT_TSAN
|
||||||
|
|
@ -187,7 +186,7 @@ ostree_run (int argc,
|
||||||
|
|
||||||
argc = out;
|
argc = out;
|
||||||
|
|
||||||
command = commands;
|
OstreeCommand *command = commands;
|
||||||
while (command->name)
|
while (command->name)
|
||||||
{
|
{
|
||||||
if (g_strcmp0 (command_name, command->name) == 0)
|
if (g_strcmp0 (command_name, command->name) == 0)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue