fixed run_command behaviour for emtpy command output (uninitialized)
This commit is contained in:
parent
3bfa5fe60d
commit
98f3985d3e
1 changed files with 1 additions and 1 deletions
|
@ -397,7 +397,7 @@ run_command(const char* command)
|
||||||
{
|
{
|
||||||
int good;
|
int good;
|
||||||
FILE *fp = popen(command, "r");
|
FILE *fp = popen(command, "r");
|
||||||
char buffer[64];
|
char buffer[64] = "";
|
||||||
|
|
||||||
if (fp == NULL) {
|
if (fp == NULL) {
|
||||||
warn("Could not get command output for: %s", command);
|
warn("Could not get command output for: %s", command);
|
||||||
|
|
Loading…
Reference in a new issue