Pārlūkot izejas kodu

fixed run_command behaviour for emtpy command output (uninitialized)

master
Aaron Marcher pirms 8 gadiem
committed by Aaron Marcher (drkhsh)
vecāks
revīzija
98f3985d3e
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      slstatus.c

+ 1
- 1
slstatus.c Parādīt failu

@@ -397,7 +397,7 @@ run_command(const char* command)
{
int good;
FILE *fp = popen(command, "r");
char buffer[64];
char buffer[64] = "";

if (fp == NULL) {
warn("Could not get command output for: %s", command);


Notiek ielāde…
Atcelt
Saglabāt