diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index ae45b269c..3b6a8d374 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -2370,6 +2370,8 @@ static unsigned long parse_flags(const char *buf, int count) e = p; while (e < buf + count && !isspace(*e)) e++; + if (e == p) + break; flag = trace_label_to_flag(p, e - p); if (!flag) return 0;