1
0
Fork 0

inititalize run_command()'s buf to UNKNOWN_STR by default

This commit is contained in:
raiz 2016-12-27 18:58:31 +03:00
parent b7f4541506
commit e1c5476291

View file

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