summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-08-06 21:01:26 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-08-06 21:01:26 +0100
commit2b0735da580b2f5ce9f35b942a36c6072ec718de (patch)
tree3b4551a7325b61f212f205d36c4917edb69187b6 /src/modules
parentf1b0e638f17ce5d7a8215407c457a8950b229514 (diff)
connman - set var to defined value - less warnings
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/wireless/connman.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/wireless/connman.c b/src/modules/wireless/connman.c
index e900432..31521a1 100644
--- a/src/modules/wireless/connman.c
+++ b/src/modules/wireless/connman.c
@@ -1186,7 +1186,7 @@ _connman_agent_auth_send(void *data, const Eina_Array *fields)
1186{ 1186{
1187 Eldbus_Message *reply; 1187 Eldbus_Message *reply;
1188 Eldbus_Message_Iter *iter, *array; 1188 Eldbus_Message_Iter *iter, *array;
1189 const char *f, *fprev; 1189 const char *f, *fprev = NULL;
1190 unsigned int i; 1190 unsigned int i;
1191 Eina_Array_Iterator it; 1191 Eina_Array_Iterator it;
1192 1192
@@ -1204,7 +1204,7 @@ _connman_agent_auth_send(void *data, const Eina_Array *fields)
1204 1204
1205 EINA_ARRAY_ITER_NEXT(fields, i, f, it) 1205 EINA_ARRAY_ITER_NEXT(fields, i, f, it)
1206 { 1206 {
1207 if (i % 2) 1207 if ((i % 2) && (fprev))
1208 _connman_dbus_dict_append_string(array, fprev, f); 1208 _connman_dbus_dict_append_string(array, fprev, f);
1209 else 1209 else
1210 fprev = f; 1210 fprev = f;