mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-16 18:15:17 +00:00
exec.cc: Make sure to test the first char only
This commit is contained in:
parent
260554883a
commit
08f7cd6732
@ -62,7 +62,7 @@ static FILE *pid_popen(const char *command, const char *mode, pid_t *child) {
|
|||||||
int x = 0;
|
int x = 0;
|
||||||
|
|
||||||
for (; *str2; str2++, x++) {
|
for (; *str2; str2++, x++) {
|
||||||
if (0 == skip) {
|
if (0 == skip && 0 == x) {
|
||||||
if (*str2 == '"' || *str2 == '\'') {
|
if (*str2 == '"' || *str2 == '\'') {
|
||||||
skip = 1;
|
skip = 1;
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user