X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=examples%2Fmanynodes.c;fp=examples%2Fmanynodes.c;h=61b5ece505c355d840e3d7e58ea7c1dd78d0cfcd;hb=b0f7726931e9339e91b8d49941626f015015bd98;hp=a0781ba66180b0ec2944e0062ac5c82145c290f3;hpb=78d7a5e98ff6569ef977bc4c72bd965b706b6e7c;p=meshlink diff --git a/examples/manynodes.c b/examples/manynodes.c index a0781ba6..61b5ece5 100644 --- a/examples/manynodes.c +++ b/examples/manynodes.c @@ -20,6 +20,7 @@ #include #include +#include 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);