summaryrefslogtreecommitdiff
path: root/src/coredump
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-03-23 16:32:48 +0100
committerLennart Poettering <lennart@poettering.net>2018-03-23 16:32:48 +0100
commitf5c4b520bae5a38f333f3cb9ef71ab23d4f9da93 (patch)
treedae9ed0d5d6023000ccf92d2d49fb13808e08ffd /src/coredump
parentd2f646828e90513355ab61855556242b32a14e48 (diff)
downloadsystemd-f5c4b520bae5a38f333f3cb9ef71ab23d4f9da93.tar.gz
coccinelle: run safe_fclose.cocci again
Diffstat (limited to 'src/coredump')
-rw-r--r--src/coredump/coredumpctl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/coredump/coredumpctl.c b/src/coredump/coredumpctl.c
index a1b8b85e10..b0a00cda37 100644
--- a/src/coredump/coredumpctl.c
+++ b/src/coredump/coredumpctl.c
@@ -1072,8 +1072,7 @@ int main(int argc, char *argv[]) {
end:
pager_close();
- if (arg_output)
- fclose(arg_output);
+ safe_fclose(arg_output);
return r >= 0 ? r : EXIT_FAILURE;
}