]> git.meshlink.io Git - meshlink/blobdiff - examples/manynodes.c
Fix errors found by Clang's static analyzer.
[meshlink] / examples / manynodes.c
index a0781ba66180b0ec2944e0062ac5c82145c290f3..61b5ece505c355d840e3d7e58ea7c1dd78d0cfcd 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <sys/time.h>
 #include <signal.h>
+#include <assert.h>
 
 static int n = 10;
 static meshlink_handle_t **mesh;
@@ -77,6 +78,8 @@ static void linkmesh() {
 }
 
 static bool exportmeshgraph(const char *path) {
+       assert(path);
+
        struct stat ps;
        int psr = stat(path, &ps);