fix possible segfault: auto_ptr fluxbox may be 0 ..
This commit is contained in:
parent
f7c92157ac
commit
9f4b2978c3
1 changed files with 7 additions and 2 deletions
|
@ -273,8 +273,13 @@ int main(int argc, char **argv) {
|
|||
abort();
|
||||
}
|
||||
|
||||
bool restarting = fluxbox->isRestarting();
|
||||
const std::string restart_argument(fluxbox->getRestartArgument());
|
||||
bool restarting = false;
|
||||
std::string restart_argument;
|
||||
|
||||
if (fluxbox.get()) {
|
||||
restarting = fluxbox->isRestarting();
|
||||
restart_argument = fluxbox->getRestartArgument();
|
||||
}
|
||||
|
||||
// destroy fluxbox
|
||||
fluxbox.reset(0);
|
||||
|
|
Loading…
Reference in a new issue