diff options
author | Jari Vetoniemi <mailRoxas@gmail.com> | 2019-06-05 18:15:42 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-05 18:15:42 +0300 |
commit | f464f0e30a34c27babc9d533a52fbe260f134034 (patch) | |
tree | 17dce7df68d8cf84fb584e0dd1ac45980c0367a8 | |
parent | 572470ef8cc4725728b239fe5fa65f62f9d70dd4 (diff) | |
parent | 5d787629a55cd4ec5ba577559d2c95cccd24282e (diff) | |
download | bemenu-f464f0e30a34c27babc9d533a52fbe260f134034.tar.gz bemenu-f464f0e30a34c27babc9d533a52fbe260f134034.tar.bz2 bemenu-f464f0e30a34c27babc9d533a52fbe260f134034.zip |
Merge pull request #60 from toke/bugfix/upstream-59
Prevent a deadloop in PATH handling
-rw-r--r-- | client/bemenu-run.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/client/bemenu-run.c b/client/bemenu-run.c index 20efd77..4feacf9 100644 --- a/client/bemenu-run.c +++ b/client/bemenu-run.c @@ -66,6 +66,8 @@ get_paths(const char *env, const char *default_paths, struct paths *state) if ((f = strcspn(state->path, ":")) > 0) { state->path += f + (path[f] ? 1 : 0); path[f] = 0; + } else { + state->path += 1; } if (!*path) { |