Should have been included in the previous commit (r988).
authorbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Wed, 29 Jul 2009 18:14:41 +0000 (18:14 +0000)
committerbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Wed, 29 Jul 2009 18:14:41 +0000 (18:14 +0000)
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@989 d57e44dd-8a1f-0410-8b47-8ef2f437770f

srpt/src/ib_srpt.c

index ae45b26..3b6a8d3 100644 (file)
@@ -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;