summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-04-13 13:58:50 +0200
committerLennart Poettering <lennart@poettering.net>2012-04-13 13:58:50 +0200
commit7ea07dcddafe573c699fc48171b57b912897e7e2 (patch)
tree35f8fb250e06a24b2c55b42359b001bd8a2ee9d9 /src/shared
parent64695e53a0f425b831ba90d467f0e7a668c1b33c (diff)
fix a couple of things found with the llvm static analyzer
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/logs-show.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/logs-show.c b/src/shared/logs-show.c
index fedb4532db..4c59ca34cd 100644
--- a/src/shared/logs-show.c
+++ b/src/shared/logs-show.c
@@ -554,7 +554,7 @@ int show_journal_by_unit(
bool follow) {
char *m = NULL;
- sd_journal *j;
+ sd_journal *j = NULL;
int r;
int fd;
unsigned line = 0;