]> git.ipfire.org Git - people/ms/network.git/commitdiff
network-phy-list-ht-caps: Don't print empty lines
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 6 Feb 2018 13:32:40 +0000 (13:32 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 6 Feb 2018 13:32:40 +0000 (13:32 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/utils/network-phy-list-ht-caps.c

index 3a6538bce56702b4554bbe56b9b5a49f2f7e37c9..7a3cfab3b7cce565c0709367517df4dee91f1dc1 100644 (file)
@@ -49,7 +49,7 @@ int main(int argc, char** argv) {
 
     // Print all supported HT capabilities
     char* ht_caps = network_phy_list_ht_capabilities(phy);
-    if (ht_caps) {
+    if (ht_caps && *ht_caps) {
         printf("%s\n", ht_caps);
         free(ht_caps);
     }