From 3e18defd73144a2f2648f63667662d8e79169dd1 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 29 Jul 2009 18:14:41 +0000 Subject: [PATCH] Should have been included in the previous commit (r988). git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@989 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 2 ++ 1 file changed, 2 insertions(+) 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;