fix: const-qualify dir_result to fix cppcheck style warning
This commit is contained in:
+1
-1
@@ -414,7 +414,7 @@ bool to_disk(const char* path, const void* data, unsigned long long data_size) {
|
|||||||
char* path_dup = str_dup(path);
|
char* path_dup = str_dup(path);
|
||||||
if (!path_dup)
|
if (!path_dup)
|
||||||
return false;
|
return false;
|
||||||
char* dir_result = dirname(path_dup);
|
const char* dir_result = dirname(path_dup);
|
||||||
char* directory = str_dup(dir_result);
|
char* directory = str_dup(dir_result);
|
||||||
free(path_dup);
|
free(path_dup);
|
||||||
if (!directory)
|
if (!directory)
|
||||||
|
|||||||
Reference in New Issue
Block a user