1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-06 16:59:03 +03:00

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

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