File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -778,6 +778,7 @@ Datum http_set_curlopt(PG_FUNCTION_ARGS)
778
778
int i = 0 ;
779
779
char * curlopt , * value ;
780
780
text * curlopt_txt , * value_txt ;
781
+ CURL * handle ;
781
782
782
783
/* Version check */
783
784
http_check_curl_version (curl_version_info (CURLVERSION_NOW ));
@@ -787,7 +788,7 @@ Datum http_set_curlopt(PG_FUNCTION_ARGS)
787
788
PG_RETURN_BOOL (false);
788
789
789
790
/* Set up global HTTP handle */
790
- g_http_handle = http_get_handle ();
791
+ handle = http_get_handle ();
791
792
792
793
/* Read arguments */
793
794
curlopt_txt = PG_GETARG_TEXT_P (0 );
@@ -803,7 +804,7 @@ Datum http_set_curlopt(PG_FUNCTION_ARGS)
803
804
{
804
805
if (opt -> curlopt_val ) pfree (opt -> curlopt_val );
805
806
opt -> curlopt_val = MemoryContextStrdup (CacheMemoryContext , value );
806
- PG_RETURN_BOOL (set_curlopt (g_http_handle , opt ));
807
+ PG_RETURN_BOOL (set_curlopt (handle , opt ));
807
808
}
808
809
}
809
810
You can’t perform that action at this time.
0 commit comments