inititalize run_command()'s buf to UNKNOWN_STR by default
This commit is contained in:
parent
b7f4541506
commit
e1c5476291
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue