Skip to content

Commit

Permalink
exec.cc: Make sure to test the first char only
Browse files Browse the repository at this point in the history
  • Loading branch information
su8 authored and brndnmtthws committed Aug 9, 2018
1 parent 2605548 commit 08f7cd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/exec.cc
Expand Up @@ -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;
Expand Down

0 comments on commit 08f7cd6

Please sign in to comment.