]> git.sur5r.net Git - i3/i3/commitdiff
reset shmlogname when disabling the log
authorMichael Stapelberg <michael@stapelberg.de>
Sun, 23 Jun 2013 20:14:39 +0000 (22:14 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 23 Jun 2013 20:14:39 +0000 (22:14 +0200)
This makes the i3-dump-log error message more helpful.

src/log.c

index 5530f66f9f5358681e45a1bcdbf5150494f53548..68131af88daae542cd9f2c792bf1e2a3331c8768 100644 (file)
--- a/src/log.c
+++ b/src/log.c
@@ -167,6 +167,7 @@ void close_logbuffer(void) {
     close(logbuffer_shm);
     shm_unlink(shmlogname);
     logbuffer = NULL;
+    shmlogname = "";
 }
 
 /*