Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e3403e9

Browse files
Mikemichael-grunder
authored andcommitted
fix for parsing ini value from string (atol should have been atof)
1 parent 6f5e47c commit e3403e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redis_array_impl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ RedisArray *ra_load_array(const char *name TSRMLS_DC) {
276276
d_connect_timeout = Z_DVAL_PP(z_data_pp);
277277
}
278278
else {
279-
d_connect_timeout = atol(Z_STRVAL_PP(z_data_pp));
279+
d_connect_timeout = atof(Z_STRVAL_PP(z_data_pp));
280280
}
281281
}
282282
}

0 commit comments

Comments
 (0)