binutils/binutils-2.22-gold-fix_pointer_reference.patch

13 lines
486 B
Diff
Raw Normal View History

diff -Nru binutils-2.22.orig/gold/options.cc binutils-2.22/gold/options.cc
--- binutils-2.22.orig/gold/options.cc 2011-07-11 16:19:51.000000000 +0000
+++ binutils-2.22/gold/options.cc 2012-07-31 14:52:22.178701142 +0000
@@ -198,7 +198,7 @@
{
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);
}