node: fix use of potentially uninitialized variable

v0.7.4-release
Ben Noordhuis 2011-10-14 15:05:02 +00:00
parent 87b34c94fa
commit e0297ca59b
1 changed files with 1 additions and 1 deletions

View File

@ -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++) {