]> err.no Git - systemd/commitdiff
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 53dbf8e138a65dc06841d65da365f5845648988f..39263bfe4c41530e9431396f91886b4f68d95cba 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);
                 }