File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -1305,11 +1305,13 @@ hstore_to_json_loose(PG_FUNCTION_ARGS)
1305
1305
{
1306
1306
/*
1307
1307
* might be a number. See if we can input it as a numeric
1308
- * value
1308
+ * value. Ignore any actual parsed value.
1309
1309
*/
1310
1310
char * endptr = "junk" ;
1311
+ long lval ;
1311
1312
1312
- (void ) strtol (src -> data , & endptr , 10 );
1313
+ lval = strtol (src -> data , & endptr , 10 );
1314
+ (void ) lval ;
1313
1315
if (* endptr == '\0' )
1314
1316
{
1315
1317
/*
@@ -1321,7 +1323,10 @@ hstore_to_json_loose(PG_FUNCTION_ARGS)
1321
1323
else
1322
1324
{
1323
1325
/* not an int - try a double */
1324
- (void ) strtod (src -> data , & endptr );
1326
+ double dval ;
1327
+
1328
+ dval = strtod (src -> data , & endptr );
1329
+ (void ) dval ;
1325
1330
if (* endptr == '\0' )
1326
1331
is_number = true;
1327
1332
}
You can’t perform that action at this time.
0 commit comments