BIND 10 trac2992, updated. b2f0388d5396ee32c6e8b6593130fe87e26153ae [2992] variable definition is moved into inner scope because of cppcheck claim
BIND 10 source code commits
bind10-changes at lists.isc.org
Thu Jun 13 05:28:08 UTC 2013
The branch, trac2992 has been updated
via b2f0388d5396ee32c6e8b6593130fe87e26153ae (commit)
from c16bf9a2b17f26c73b5be8aa9a7b4f3570b8f3c1 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit b2f0388d5396ee32c6e8b6593130fe87e26153ae
Author: fujiwara <fujiwara at debian32.private>
Date: Thu Jun 13 14:26:21 2013 +0900
[2992] variable definition is moved into inner scope because of cppcheck claim
-----------------------------------------------------------------------
Summary of changes:
src/lib/cc/data.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
-----------------------------------------------------------------------
diff --git a/src/lib/cc/data.cc b/src/lib/cc/data.cc
index a9f7caa..ef39753 100644
--- a/src/lib/cc/data.cc
+++ b/src/lib/cc/data.cc
@@ -397,13 +397,13 @@ fromStringstreamNumber(std::istream& in, int& pos) {
double d = 0.0;
bool is_double = false;
char* endptr;
- const char* ptr;
std::string number = numberFromStringstream(in, pos);
errno = 0;
i = strtol(number.c_str(), &endptr, 10);
if (*endptr != '\0') {
+ const char* ptr;
errno = 0;
d = strtod(ptr = number.c_str(), &endptr);
is_double = true;
More information about the bind10-changes
mailing list