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:
parent
8460289f35
commit
fe4377faa5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user