X-Git-Url: https://git.lttng.org/?p=lttngtop.git;a=blobdiff_plain;f=src%2Fiostreamtop.c;h=e4da1dd408e0be30c3af2c5f825cf7f27259731e;hp=e0df4ba2292e6f6f3c1b0dceddc16ba496c4f3ef;hb=7d69680f4d19e93b44a2eafec672e03b642e7993;hpb=415f00b6208892021330fb13d8ec496846aec59b diff --git a/src/iostreamtop.c b/src/iostreamtop.c index e0df4ba..e4da1dd 100644 --- a/src/iostreamtop.c +++ b/src/iostreamtop.c @@ -124,7 +124,7 @@ void insert_file(struct processtop *proc, int fd) if (parent) { tmp_parent = g_ptr_array_index( parent->process_files_table, fd); - if (tmp_parent && tmp->name && + if (tmp_parent && tmp->name && tmp_parent->name && (strcmp(tmp->name, tmp_parent->name)) != 0) tmp->name = strdup(tmp_parent->name); }