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 | aa2071bd242e144dc6764517a0a6117b6a5a1661 (diff) | |
download | gdb-6a59a5c20bc0b86510df47b1b17ee34e902a2e5b.zip gdb-6a59a5c20bc0b86510df47b1b17ee34e902a2e5b.tar.gz gdb-6a59a5c20bc0b86510df47b1b17ee34e902a2e5b.tar.bz2 |
* 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 d91a834..dcf6ba7 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); } |