aboutsummaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
authorsimonb <simonb>2006-04-24 14:29:21 (GMT)
committersimonb <simonb>2006-04-24 14:29:21 (GMT)
commitacf4326f3cc3451aaf874b0b0777d69be5834e57 (patch)
tree8abf3c4158ece9c97c3764d7eb4eb9e1aa53bf84 /src/main.cc
parentf6a072430d4de159e229d6172adc5ba5ae985512 (diff)
downloadfluxbox-acf4326f3cc3451aaf874b0b0777d69be5834e57.zip
fluxbox-acf4326f3cc3451aaf874b0b0777d69be5834e57.tar.bz2
Use -Wall when --enable-debug and some warning fixes
+ thanks Jonas Koelker
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main.cc b/src/main.cc
index fedc3a9..b458fbf 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -304,9 +304,10 @@ int main(int argc, char **argv) {
304 cerr.rdbuf(errbuf); 304 cerr.rdbuf(errbuf);
305 305
306 if (restarting) { 306 if (restarting) {
307 if (restart_argument.c_str()) { 307 const char *arg = restart_argument.c_str();
308 execlp(restart_argument.c_str(), restart_argument.c_str(), 0); 308 if (arg) {
309 perror(restart_argument.c_str()); 309 execlp(arg, arg, (char *) NULL);
310 perror(arg);
310 } 311 }
311 312
312 // fall back in case the above execlp doesn't work 313 // fall back in case the above execlp doesn't work