diff options
author | Diego Novillo <dnovillo@google.com> | 2011-10-03 17:01:43 +0000 |
---|---|---|
committer | Diego Novillo <dnovillo@google.com> | 2011-10-03 17:01:43 +0000 |
commit | 6a59a5c20bc0b86510df47b1b17ee34e902a2e5b (patch) | |
tree | ea9061452f24b3e60163994f0098a874daaf114e /gold/options.cc | |
parent | * gdb.python/py-value.exp (diff) | |
download | binutils-gdb-6a59a5c20bc0b86510df47b1b17ee34e902a2e5b.tar.gz binutils-gdb-6a59a5c20bc0b86510df47b1b17ee34e902a2e5b.tar.bz2 binutils-gdb-6a59a5c20bc0b86510df47b1b17ee34e902a2e5b.zip |
* options.cc (parse_uint): Fix dereference of RETVAL.
Diffstat (limited to 'gold/options.cc')
-rw-r--r-- | gold/options.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/options.cc b/gold/options.cc index d91a8343f9f..dcf6ba71ace 100644 --- a/gold/options.cc +++ b/gold/options.cc @@ -198,7 +198,7 @@ parse_uint(const char* option_name, const char* arg, int* retval) { char* endptr; *retval = strtol(arg, &endptr, 0); - if (*endptr != '\0' || retval < 0) + if (*endptr != '\0' || *retval < 0) gold_fatal(_("%s: invalid option value (expected an integer): %s"), option_name, arg); } |