#include <errno.h>
static char ** __attribute__((format(printf, 2, 3)))
-lines_from_cmd(const void *ctx, char *format, ...)
+lines_from_cmd(const void *ctx, const char *format, ...)
{
va_list ap;
char *cmd, *buffer;
return NULL;
ccandir = talloc_dirname(ctx, dir);
- *strrchr(ccandir, '/') = '\0';
+ if (strrchr(ccandir, '/'))
+ *strrchr(ccandir, '/') = '\0';
compiled = maybe_temp_file(ctx, "", false, "info");
if (compile_and_link(ctx, info_c_file, ccandir, "",