gre: Simplify net namespace operations.
[openvswitch] / lib / ovsdb-data.c
index 1f3a89d633cf6fa6a07a030fa411cbe4c15221d7..8631016ff8c2fe93590b57f7ac81d00f0c062c31 100644 (file)
@@ -843,8 +843,10 @@ parse_key_value(const char **s, const struct ovsdb_type *type,
 
     error = parse_atom_token(s, type->key_type, key);
     if (!error && type->value_type != OVSDB_TYPE_VOID) {
+        *s = skip_spaces(*s);
         if (**s == '=') {
             (*s)++;
+            *s = skip_spaces(*s);
             error = parse_atom_token(s, type->value_type, value);
         } else {
             error = xasprintf("%s: syntax error at \"%c\" expecting \"=\"",