diff options
| author | Ben Pfaff <blp@nicira.com> | 2010-01-28 10:09:15 -0800 |
|---|---|---|
| committer | Ben Pfaff <blp@nicira.com> | 2010-01-28 14:22:40 -0800 |
| commit | 9397a13f60a477a4244a305fd88845fd5dc36b22 (patch) | |
| tree | efdf8aecc6322d5ca32396fd2bb2ece1f876b735 /lib/ovsdb-data.c | |
| parent | cb4562170bdb37e1bb33f291a85fe275380af785 (diff) | |
| download | openvswitch-9397a13f60a477a4244a305fd88845fd5dc36b22.tar.gz | |
ovsdb-data: Allow spaces around '=' in key-value pairs.
This allows a = b, a= b, a =b, etc. whereas before only a=b was accepted.
Diffstat (limited to 'lib/ovsdb-data.c')
| -rw-r--r-- | lib/ovsdb-data.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ovsdb-data.c b/lib/ovsdb-data.c index 1f3a89d63..8631016ff 100644 --- a/lib/ovsdb-data.c +++ b/lib/ovsdb-data.c @@ -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 \"=\"", |
