projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87b34c9
)
node: fix use of potentially uninitialized variable
author
Ben Noordhuis
<info@bnoordhuis.nl>
Fri, 14 Oct 2011 15:05:02 +0000
(15:05 +0000)
committer
Ben Noordhuis
<info@bnoordhuis.nl>
Fri, 14 Oct 2011 15:05:02 +0000
(15:05 +0000)
src/node.cc
patch
|
blob
|
history
diff --git
a/src/node.cc
b/src/node.cc
index
c853c86
..
9b3f307
100644
(file)
--- a/
src/node.cc
+++ b/
src/node.cc
@@
-2111,7
+2111,7
@@
Handle<Object> SetupProcessObject(int argc, char *argv[]) {
#if HAVE_OPENSSL
// Stupid code to slice out the version string.
int c, l = strlen(OPENSSL_VERSION_TEXT);
- for (i = 0; i < l; i++) {
+ for (i =
j =
0; i < l; i++) {
c = OPENSSL_VERSION_TEXT[i];
if ('0' <= c && c <= '9') {
for (j = i + 1; j < l; j++) {