{
const char* config_file = CONFIG_FILE;
char* config_stream = read_config_file(config_file);
+ if (config_stream == NULL)
+ return;
+
load_config(&p_config, config_stream);
}
data = (response*) userdata;
fullsize = size * nmemb;
new_data_ptr = realloc(data->data, data->size + fullsize + sizeof(char));
-
if (!data->data)
return 0;
config_file = fopen(filename, "r");
+ if (config_file == NULL)
+ return NULL;
+
buf = malloc(sizeof(char));
while(fread(buf, sizeof(char), 1, config_file)) {
char_count++;