Refactor code structure for improved readability and maintainability
This commit is contained in:
+4
-2
@@ -28,8 +28,10 @@ int loadListFromCSV(char *_filename, list_t *_list)
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
exit(-1);
|
||||
logErrorEvent(logger_global, "Error loading person from CSV: %s", buffer);
|
||||
free(buffer);
|
||||
fclose(f_in);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
free(buffer);
|
||||
|
||||
Reference in New Issue
Block a user