[Git][NTPsec/ntpsec][master] libjsm: fix switch missing default.

Gary E. Miller gitlab at mg.gitlab.com
Mon Apr 8 19:51:31 UTC 2019



Gary E. Miller pushed to branch master at NTPsec / ntpsec


Commits:
d7664dc9 by Gary E. Miller at 2019-04-08T19:51:00Z
libjsm: fix switch missing default.

- - - - -


1 changed file:

- libjsmn/jsmn.c


Changes:

=====================================
libjsmn/jsmn.c
=====================================
@@ -48,6 +48,9 @@ static int jsmn_parse_primitive(jsmn_parser *parser, const char *js,
 			case '\t' : case '\r' : case '\n' : case ' ' :
 			case ','  : case ']'  : case '}' :
 				goto found;
+                        default:
+                                /* not found, keep going */
+                                break;
 		}
 		if (js[parser->pos] < 32 || js[parser->pos] >= 127) {
 			parser->pos = start;



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/d7664dc9993dd30e908c99d4b2f4af2f148410a6

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/d7664dc9993dd30e908c99d4b2f4af2f148410a6
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20190408/8fef4c8d/attachment.html>


More information about the vc mailing list