Message ID | 20220922002348.3302169-4-rostedt@goodmis.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 54931be836aad82a7d6abea78604a5578072ab89 |
Headers | show |
Series | trace-cmd: A few fixes | expand |
diff --git a/tracecmd/trace-vm.c b/tracecmd/trace-vm.c index 09bd60259258..f78f1d83386b 100644 --- a/tracecmd/trace-vm.c +++ b/tracecmd/trace-vm.c @@ -35,7 +35,7 @@ static struct trace_guest *get_guest_by_name(const char *name) { int i; - if (!guests) + if (!guests || !strlen(name)) return NULL; for (i = 0; i < guests_len; i++)