diff --git a/src/filebundle.c b/src/filebundle.c index a7db77b0..77e335e7 100644 --- a/src/filebundle.c +++ b/src/filebundle.c @@ -215,8 +215,8 @@ fb_dir *fb_opendir ( const char *path ) /* Bundle */ #if ENABLE_BUNDLE char *tmp1, *tmp2, *tmp3 = NULL; - *tmp1 = strdup(path); - *tmp2 = strtok_r(tmp1, "/", &tmp3); + tmp1 = strdup(path); + tmp2 = strtok_r(tmp1, "/", &tmp3); filebundle_entry_t *fb = filebundle_root; while (fb && tmp2) { if (fb->type == FB_DIR && !strcmp(fb->name, tmp2)) {