diff options
author | Matthew Booth <mbooth@redhat.com> | 2012-01-18 16:26:26 +0000 |
---|---|---|
committer | Matthew Booth <mbooth@redhat.com> | 2012-01-20 15:28:54 +0000 |
commit | a20b88be8364fc485d654377819e6daab303ef7a (patch) | |
tree | 7aa08fdfa846e4b923635fcf123384bfdc9ef847 | |
parent | 7412bb342141bdfe0d44d6526728f4e1fd284fe0 (diff) | |
download | libguestfs-a20b88be8364fc485d654377819e6daab303ef7a.tar.gz libguestfs-a20b88be8364fc485d654377819e6daab303ef7a.tar.xz libguestfs-a20b88be8364fc485d654377819e6daab303ef7a.zip |
bindtests: Fix sscanf test in test0rhashtable
-rw-r--r-- | generator/generator_bindtests.ml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generator/generator_bindtests.ml b/generator/generator_bindtests.ml index 21a13a78..edaf557f 100644 --- a/generator/generator_bindtests.ml +++ b/generator/generator_bindtests.ml @@ -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"; |