datapath: Avoid possibility of negative 'n_ports' in struct odp_portvec.
[openvswitch] / lib / ovsdb-error.c
index c9221493dd8fce1dbb0f47007b0190d97908bf55..c57175abb0c78c6b6ac0cca23009b318f210720d 100644 (file)
@@ -87,7 +87,7 @@ ovsdb_syntax_error(const struct json *json, const char *tag,
 
     if (json) {
         /* XXX this is much too much information in some cases */
-        error->syntax = json_to_string(json, 0);
+        error->syntax = json_to_string(json, JSSF_SORT);
     }
 
     return error;