ovsdb-idl: Document some more functions.
[openvswitch] / lib / ofp-parse.c
index 7a888801e7159043743f2baf244ef4a214e49178..e6af0362b62c33041e7ac2465cfa192834e561d8 100644 (file)
@@ -40,6 +40,10 @@ str_to_u32(const char *str)
     char *tail;
     uint32_t value;
 
+    if (!str) {
+        ovs_fatal(0, "missing required numeric argument");
+    }
+
     errno = 0;
     value = strtoul(str, &tail, 0);
     if (errno == EINVAL || errno == ERANGE || *tail) {