fix -Wdangling-else warnings
[project/iwinfo.git] / iwinfo_cli.c
index 1ca899909d736b8acb96bb5ca81095fe766f6c19..b533ffe96fefa36ae2b8b1548a9b71c661971a3f 100644 (file)
@@ -254,10 +254,12 @@ static char * format_encryption(struct iwinfo_crypto_entry *c)
 
                        for (i = 0; i < 3; i++)
                                if (c->wpa_version & (1 << i))
+                               {
                                        if (i)
                                                pos += sprintf(pos, "WPA%d/", i + 1);
                                        else
                                                pos += sprintf(pos, "WPA/");
+                               }
 
                        pos--;