OSDN Git Service
(root)
/
pf3gnuchains
/
pf3gnuchains4x.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea6bb71
)
* options.cc (parse_uint): Fix dereference of RETVAL.
author
dnovillo
<dnovillo>
Mon, 3 Oct 2011 17:01:43 +0000
(17:01 +0000)
committer
dnovillo
<dnovillo>
Mon, 3 Oct 2011 17:01:43 +0000
(17:01 +0000)
gold/ChangeLog
patch
|
blob
|
history
gold/options.cc
patch
|
blob
|
history
diff --git
a/gold/ChangeLog
b/gold/ChangeLog
index
e12a151
..
9f1083c
100644
(file)
--- 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
(file)
--- 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);
}