all repos — slstatus @ f0070071566ad27fa36c49312e1ba3946cd472b5

my build of slstatus (tools.suckless.org/slstatus/)

run_command: Clean up
Aaron Marcher me@drkhsh.at
Wed, 02 May 2018 08:29:36 +0200
commit

f0070071566ad27fa36c49312e1ba3946cd472b5

parent

7c11f890a5296ddd527ca956503bb33ceacd3ca9

1 files changed, 1 insertions(+), 2 deletions(-)

jump to
M components/run_command.ccomponents/run_command.c

@@ -11,8 +11,7 @@ {

char *p; FILE *fp; - fp = popen(cmd, "r"); - if (fp == NULL) { + if (!(fp = popen(cmd, "r"))) { fprintf(stderr, "popen '%s': %s\n", cmd, strerror(errno)); return NULL; }