Skip to content

Commit fe4377f

Browse files
committed
importd: ensure we don't mishandle a NULL string
1 parent 8460289 commit fe4377f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/import/import.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ static int import_raw(int argc, char *argv[], void *userdata) {
195195
fd = STDIN_FILENO;
196196

197197
(void) readlink_malloc("/proc/self/fd/0", &pretty);
198-
log_info("Importing '%s', saving as '%s'.", pretty, local);
198+
log_info("Importing '%s', saving as '%s'.", strempty(pretty), local);
199199
}
200200

201201
r = sd_event_default(&event);

0 commit comments

Comments
 (0)