diff options
author | Ben Pfaff <blp@nicira.com> | 2011-02-23 13:13:44 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2011-02-23 15:14:44 -0800 |
commit | 1883ed0f727bd10f0b8b6b80832029c349138595 (patch) | |
tree | 6dfaedb497b318aee016ff0b2c5bedcaa75db5a1 /ovsdb/ovsdb.c | |
parent | bca51200523113950f223666a5d07fb993e319f7 (diff) |
ovsdb: Explicitly ignore sscanf() return value in is_valid_version().
The return value isn't interesting here: it will always be 0.
Coverity #10698.
Diffstat (limited to 'ovsdb/ovsdb.c')
-rw-r--r-- | ovsdb/ovsdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ovsdb/ovsdb.c b/ovsdb/ovsdb.c index 2a54a7b9..e76544e3 100644 --- a/ovsdb/ovsdb.c +++ b/ovsdb/ovsdb.c @@ -123,7 +123,7 @@ static bool is_valid_version(const char *s) { int n = -1; - sscanf(s, "%*[0-9].%*[0-9].%*[0-9]%n", &n); + ignore(sscanf(s, "%*[0-9].%*[0-9].%*[0-9]%n", &n)); return n != -1 && s[n] == '\0'; } |