summaryrefslogtreecommitdiff
path: root/gold/options.cc
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@google.com>2011-10-03 17:01:43 +0000
committerDiego Novillo <dnovillo@google.com>2011-10-03 17:01:43 +0000
commit1cc26f70bff0689cff6b63bc7be0c10de922012c (patch)
tree20598646a45d5178808b868ac52d7bd3e3492149 /gold/options.cc
parent1fe0dbb904cf86d7b723099851544508d4cd0869 (diff)
downloadbinutils-redhat-1cc26f70bff0689cff6b63bc7be0c10de922012c.tar.gz
* options.cc (parse_uint): Fix dereference of RETVAL.
Diffstat (limited to 'gold/options.cc')
-rw-r--r--gold/options.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/options.cc b/gold/options.cc
index d91a8343f9..dcf6ba71ac 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);
}