mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
importd: ensure we don't mishandle a NULL string
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user