mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
bindtests: Fix sscanf test in test0rhashtable
This commit is contained in:
@@ -167,7 +167,7 @@ print_strings (char *const *argv)
|
||||
| RHashtable _ ->
|
||||
pr " char **strs;\n";
|
||||
pr " int n, i;\n";
|
||||
pr " if (sscanf (val, \"%%d\", &n) != -1) {\n";
|
||||
pr " if (sscanf (val, \"%%d\", &n) != 1) {\n";
|
||||
pr " error (g, \"%%s: expecting int argument\", \"%s\");\n" name;
|
||||
pr " return NULL;\n";
|
||||
pr " }\n";
|
||||
|
||||
Reference in New Issue
Block a user