Skip to content

Commit bd2cbd6

Browse files
committed
Fix. Use long to save curl constants.
1 parent 7a1c663 commit bd2cbd6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/lcutils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ void lcurl_storage_get_i(lua_State *L, int storage, int i){
6969
}
7070

7171
struct curl_slist* lcurl_storage_remove_slist(lua_State *L, int storage, int idx){
72-
struct curl_slist* list;
72+
struct curl_slist* list = NULL;
7373
assert(idx != LUA_NOREF);
7474
lua_rawgeti(L, LCURL_LUA_REGISTRY, storage);
7575
lua_rawgeti(L, -1, LCURL_STORAGE_SLIST); // list storage

src/lcutils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
typedef struct lcurl_const_tag{
1212
const char *name;
13-
int value;
13+
long value;
1414
}lcurl_const_t;
1515

1616
typedef struct lcurl_callback_tag{

0 commit comments

Comments
 (0)