chiark / gitweb /
journal: fix bad memory access
authorLennart Poettering <lennart@poettering.net>
Sat, 14 Jan 2012 00:53:47 +0000 (01:53 +0100)
committerLennart Poettering <lennart@poettering.net>
Sat, 14 Jan 2012 00:54:33 +0000 (01:54 +0100)
src/journal/journald.c

index 53dbf8e..39263bf 100644 (file)
@@ -489,7 +489,7 @@ static void dispatch_message_real(Server *s,
                         exe = strappend("_EXE=", t);
                         free(t);
 
-                        if (comm)
+                        if (exe)
                                 IOVEC_SET_STRING(iovec[n++], exe);
                 }