Skip to content
Snippets Groups Projects
Commit fd41db08 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Cast away warning...

This is why I returned ret. :D
parent abec3d19
No related branches found
No related tags found
No related merge requests found
Pipeline #5899 passed
......@@ -1023,7 +1023,7 @@ char* iniReadSString(FILE* fp, const char* section, const char* key, const char*
if (ret == NULL)
return NULL;
if (ret == deflt)
return deflt;
return (char*)deflt;
if (sz < 1 || value == NULL)
return value;
for (pos = 0; ret[pos]; pos++) {
......@@ -1070,7 +1070,7 @@ char* iniGetSString(str_list_t list, const char* section, const char* key, const
if (ret == NULL)
return NULL;
if (ret == deflt)
return deflt;
return (char*)deflt;
if (sz < 1 || value == NULL)
return value;
for (pos = 0; ret[pos]; pos++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment