Xinqi Bao's Git

n/a for run_command()
authorAaron Marcher <[email protected]>
Sat, 17 Sep 2016 16:16:27 +0000 (18:16 +0200)
committerAaron Marcher (drkhsh) <[email protected]>
Sat, 17 Sep 2016 16:16:27 +0000 (18:16 +0200)
slstatus.c

index 05faef0..4a092af 100644 (file)
@@ -406,7 +406,7 @@ static char *
 run_command(const char *cmd)
 {
        FILE *fp;
 run_command(const char *cmd)
 {
        FILE *fp;
-       char buf[64] = "\0";
+       char buf[64] = "n/a";
 
        fp = popen(cmd, "r");
        if (fp == NULL) {
 
        fp = popen(cmd, "r");
        if (fp == NULL) {