aboutsummaryrefslogtreecommitdiffstats
path: root/src/loader.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/loader.c')
-rw-r--r--src/loader.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/loader.c b/src/loader.c
index 2d8ebf5..8f04dae 100644
--- a/src/loader.c
+++ b/src/loader.c
@@ -11,6 +11,7 @@
#endif /* HAVE_CONFIG_H */
#include <math.h>
+#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include "utils/utils.h"
@@ -30,8 +31,9 @@ blogc_get_filename(const char *f)
if (strlen(f) == 0)
return NULL;
- // keep a pointer to original string
char *filename = b_strdup(f);
+
+ // keep a pointer to original string
char *tmp = filename;
bool removed_dot = false;