Browse Source

inititalize run_command()'s buf to UNKNOWN_STR by default

master
raiz 9 years ago
parent
commit
e1c5476291
  1. 2
      slstatus.c

2
slstatus.c

@ -407,7 +407,7 @@ run_command(const char *cmd)
{
char *nlptr;
FILE *fp;
char buf[1024] = "n/a";
char buf[1024] = UNKNOWN_STR;
fp = popen(cmd, "r");
if (fp == NULL) {

Loading…
Cancel
Save