aboutsummaryrefslogtreecommitdiff
path: root/gold
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
commit6a59a5c20bc0b86510df47b1b17ee34e902a2e5b (patch)
treeea9061452f24b3e60163994f0098a874daaf114e /gold
parentaa2071bd242e144dc6764517a0a6117b6a5a1661 (diff)
downloadgdb-6a59a5c20bc0b86510df47b1b17ee34e902a2e5b.zip
gdb-6a59a5c20bc0b86510df47b1b17ee34e902a2e5b.tar.gz
gdb-6a59a5c20bc0b86510df47b1b17ee34e902a2e5b.tar.bz2
* options.cc (parse_uint): Fix dereference of RETVAL.
Diffstat (limited to 'gold')
-rw-r--r--gold/ChangeLog4
-rw-r--r--gold/options.cc2
2 files changed, 5 insertions, 1 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog
index e12a151..9f1083c 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -1,3 +1,7 @@
+2011-10-03 Diego Novillo <dnovillo@google.com>
+
+ * options.cc (parse_uint): Fix dereference of RETVAL.
+
2011-09-29 Sriraman Tallam <tmsriram@google.com>
* layout.h (section_order_map_): New member.
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);
}