diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-04-17 21:59:55 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-04-17 21:59:55 +0200 |
commit | 08efc4af57afcda8d3b7857dfea7f139e2192df4 (patch) | |
tree | a254d469732a934a0fbdf21582217f5a2f615a9d | |
parent | d24f0fd57e50c44c2d8f69bb8ba7439ee9db34aa (diff) |
mkminidump: properly handle STDOUT write support
-rw-r--r-- | mkminidump.c | 2 |
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 { |