diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-07-16 14:45:28 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-07-16 22:41:47 -0400 |
commit | 4ad16808c02e3eb6c1ec8500b3d086cc28e9b75a (patch) | |
tree | 64d0d5fb4bb0905217ba4e1af3e4958dff64926f /src/journal/sd-journal.c | |
parent | 248fc619b5e3e24d78f171f95b85916eee7987bd (diff) |
journalctl,systemctl: fix tiny memleak
Diffstat (limited to 'src/journal/sd-journal.c')
-rw-r--r-- | src/journal/sd-journal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/sd-journal.c b/src/journal/sd-journal.c index 81b0c136f5..a83c0c25bf 100644 --- a/src/journal/sd-journal.c +++ b/src/journal/sd-journal.c @@ -362,7 +362,7 @@ static char *match_make_string(Match *m) { bool enclose = false; if (!m) - return strdup(""); + return strdup("none"); if (m->type == MATCH_DISCRETE) return strndup(m->data, m->size); |