]> www.tinc-vpn.org Git - tinc/blobdiff - src/fsck.c
GitHub CI: update list of container images
[tinc] / src / fsck.c
index 8d818a3c1c9f6fb6ca89a199fbec153d9c25d3dc..b44b7759584aa4a4bba930b613ef0d2597453aed 100644 (file)
@@ -64,6 +64,7 @@ again:
        goto again;
 }
 
+static void print_tinc_cmd(const char *format, ...) ATTR_FORMAT(printf, 1, 2);
 static void print_tinc_cmd(const char *format, ...) {
        if(confbasegiven) {
                fprintf(stderr, "%s -c %s ", exe_name, confbase);
@@ -141,6 +142,11 @@ static void check_conffile(const char *nodename, bool server) {
                ++total_vars;
        }
 
+       if(!total_vars) {
+               splay_empty_tree(&config);
+               return;
+       }
+
        const size_t countlen = total_vars * sizeof(int);
        int *count = alloca(countlen);
        memset(count, 0, countlen);