Fixed null dereference, renamed argument to match declaration
This commit is contained in:
3
fiche.c
3
fiche.c
@@ -141,7 +141,7 @@ static int create_directory(char *output_dir, char *slug);
|
|||||||
* @arg data Buffer with data received from the user
|
* @arg data Buffer with data received from the user
|
||||||
* @arg path Path at which file containing data from the buffer will be created
|
* @arg path Path at which file containing data from the buffer will be created
|
||||||
*/
|
*/
|
||||||
static int save_to_file(uint8_t *data, char *output_dir, char *path);
|
static int save_to_file(uint8_t *data, char *output_dir, char *slug);
|
||||||
|
|
||||||
|
|
||||||
// Logging-related
|
// Logging-related
|
||||||
@@ -626,7 +626,6 @@ static void *handle_connection(void *args) {
|
|||||||
|
|
||||||
// Cleanup
|
// Cleanup
|
||||||
free(c);
|
free(c);
|
||||||
free(slug);
|
|
||||||
pthread_exit(NULL);
|
pthread_exit(NULL);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user