From: Ben Pfaff Date: Wed, 23 Feb 2011 21:13:44 +0000 (-0800) Subject: ovsdb: Explicitly ignore sscanf() return value in is_valid_version(). X-Git-Tag: v1.1.0~219 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=1883ed0f727bd10f0b8b6b80832029c349138595;p=sliver-openvswitch.git ovsdb: Explicitly ignore sscanf() return value in is_valid_version(). The return value isn't interesting here: it will always be 0. Coverity #10698. --- diff --git a/ovsdb/ovsdb.c b/ovsdb/ovsdb.c index 2a54a7b90..e76544e36 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'; }