return true;
}
+/* FIXME: check this is still true once we reduce features. */
static void check_depends_exist(struct manifest *m,
bool keep,
unsigned int *timeleft, struct score *score)
char **deps;
char *updir = talloc_strdup(m, m->dir);
- *strrchr(updir, '/') = '\0';
+ if (strrchr(updir, '/'))
+ *strrchr(updir, '/') = '\0';
if (safe_mode)
- deps = get_safe_ccan_deps(m, m->dir, true,
- &m->info_file->compiled);
+ deps = get_safe_ccan_deps(m, m->dir, true);
else
- deps = get_deps(m, m->dir, true, &m->info_file->compiled);
+ deps = get_deps(m, m->dir, true,
+ &m->info_file->compiled[COMPILE_NORMAL]);
for (i = 0; deps[i]; i++) {
if (!strstarts(deps[i], "ccan/"))