From 24d8f04d148d6d442301468a70233cfd953a043d Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Sat, 24 Sep 2016 00:06:58 +1000 Subject: [PATCH] * source/files.c : add errcb() stub --- src/sources/files.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/sources/files.c b/src/sources/files.c index f0ba836..b3cf32a 100644 --- a/src/sources/files.c +++ b/src/sources/files.c @@ -28,6 +28,12 @@ struct _config { f2b_file_t *current; }; +static void +errcb_stub(char *str) { + assert(str != NULL); + (void)(str); +} + static bool file_open(f2b_file_t *file, const char *path) { struct stat st; @@ -111,6 +117,7 @@ create(const char *init) { if ((cfg = calloc(1, sizeof(cfg_t))) == NULL) return NULL; strlcpy(cfg->path, init, sizeof(cfg->path)); + cfg->errcb = &errcb_stub; return cfg; }