all repos — fluxbox @ 65df54d635e8ad2029efea1c3c00eccfffe8532d

custom fork of the fluxbox windowmanager

std::string.c_str() is never NULL
Mathias Gumz akira at fluxbox dot org
commit

65df54d635e8ad2029efea1c3c00eccfffe8532d

parent

70a24b992ccd4082e00396bdb89ec02dec7e6ec5

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

jump to
M src/main.ccsrc/main.cc

@@ -325,11 +325,8 @@ const char *shell = getenv("SHELL");

if (!shell) shell = "/bin/sh"; - const char *arg = restart_argument.c_str(); - if (arg) { - execlp(shell, shell, "-c", arg, (const char *) NULL); - perror(arg); - } + execlp(shell, shell, "-c", restart_argument.c_str(), (const char *) NULL); + perror(restart_argument.c_str()); } // fall back in case the above execlp doesn't work