From fe4377faa58cecb6abdac3549443cd74728559d2 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 6 Apr 2018 18:57:36 +0200 Subject: [PATCH] importd: ensure we don't mishandle a NULL string --- src/import/import.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/import/import.c b/src/import/import.c index b961f58c1a..5f459b0b3d 100644 --- a/src/import/import.c +++ b/src/import/import.c @@ -195,7 +195,7 @@ static int import_raw(int argc, char *argv[], void *userdata) { fd = STDIN_FILENO; (void) readlink_malloc("/proc/self/fd/0", &pretty); - log_info("Importing '%s', saving as '%s'.", pretty, local); + log_info("Importing '%s', saving as '%s'.", strempty(pretty), local); } r = sd_event_default(&event);