importd: ensure we don't mishandle a NULL string

This commit is contained in:
Lennart Poettering 2018-04-06 18:57:36 +02:00
parent 8460289f35
commit fe4377faa5
1 changed files with 1 additions and 1 deletions

View File

@ -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);