mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-31 02:00:14 +01:00
clients: fix bad array loop in nm-secret-agent-simple.c:strv_has (bgo #752137)
https://bugzilla.gnome.org/show_bug.cgi?id=752137
This commit is contained in:
parent
66e2c29346
commit
55c3f70ec8
1 changed files with 3 additions and 3 deletions
|
|
@ -122,10 +122,10 @@ static gboolean
|
|||
strv_has (gchar **haystack,
|
||||
gchar *needle)
|
||||
{
|
||||
gchar *iter;
|
||||
gchar **iter;
|
||||
|
||||
for (iter = *haystack; iter; iter++) {
|
||||
if (g_strcmp0 (iter, needle) == 0)
|
||||
for (iter = haystack; iter && *iter; iter++) {
|
||||
if (g_strcmp0 (*iter, needle) == 0)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue