diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2015-09-05 19:08:20 -0300 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2015-09-05 19:08:20 -0300 |
commit | 9a97d1c2349c5d23d8696f38e4b5f9ba799ca794 (patch) | |
tree | 6f419253190a7b4a800325974e05daae8aa762d9 /src/loader.c | |
parent | df702f712af38ad50ebc686a184ac0ffc3212f00 (diff) | |
download | blogc-9a97d1c2349c5d23d8696f38e4b5f9ba799ca794.tar.gz blogc-9a97d1c2349c5d23d8696f38e4b5f9ba799ca794.tar.bz2 blogc-9a97d1c2349c5d23d8696f38e4b5f9ba799ca794.zip |
loader: minor fixes
Diffstat (limited to 'src/loader.c')
-rw-r--r-- | src/loader.c | 4 |
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; |