summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2012-12-19 14:38:53 +0100
committerLennart Poettering <lennart@poettering.net>2012-12-19 15:27:44 +0100
commit348a25edbb87ee4e67aa79fcb97a2bc1b5c11c7b (patch)
tree5b03cd45e0d980000cfeaab6ee683e60821057f2 /src
parent45db2956baf107c9129af68ae3111391d0ee4640 (diff)
coredumpctl: check return of strndup
Diffstat (limited to 'src')
-rw-r--r--src/journal/coredumpctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/coredumpctl.c b/src/journal/coredumpctl.c
index f9cebb7a42..4f0ed58397 100644
--- a/src/journal/coredumpctl.c
+++ b/src/journal/coredumpctl.c
@@ -262,7 +262,7 @@ static int retrieve(const void *data,
return 0;
*var = strndup((const char*)data + ident, len - ident);
- if (!var)
+ if (!*var)
return log_oom();
return 0;