summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-04-17 21:59:55 +0200
committerLennart Poettering <lennart@poettering.net>2012-04-17 21:59:55 +0200
commit08efc4af57afcda8d3b7857dfea7f139e2192df4 (patch)
treea254d469732a934a0fbdf21582217f5a2f615a9d
parentd24f0fd57e50c44c2d8f69bb8ba7439ee9db34aa (diff)
mkminidump: properly handle STDOUT write support
-rw-r--r--mkminidump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkminidump.c b/mkminidump.c
index 76838d9..162f79b 100644
--- a/mkminidump.c
+++ b/mkminidump.c
@@ -128,7 +128,7 @@ static int output_and_free(const char *path, void **buffer, size_t *buffer_size)
assert(buffer_size);
assert(*buffer_size > 0);
- if (!path || strcmp(path, "-")) {
+ if (!path || strcmp(path, "-") == 0) {
f = stdout;
toclose = NULL;
} else {