1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-25 04:06:03 +00:00

exec.cc: Make sure to test the first char only

This commit is contained in:
su8 2018-08-08 15:31:02 +02:00 committed by Brenden Matthews
parent 260554883a
commit 08f7cd6732

View File

@ -62,7 +62,7 @@ static FILE *pid_popen(const char *command, const char *mode, pid_t *child) {
int x = 0;
for (; *str2; str2++, x++) {
if (0 == skip) {
if (0 == skip && 0 == x) {
if (*str2 == '"' || *str2 == '\'') {
skip = 1;
continue;