* options.cc (parse_uint): Fix dereference of RETVAL.

This commit is contained in:
Diego Novillo 2011-10-03 17:01:43 +00:00
parent aa2071bd24
commit 6a59a5c20b
2 changed files with 5 additions and 1 deletions

View file

@ -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.

View file

@ -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);
}