]> git.meshlink.io Git - meshlink/commitdiff
Don't dereference a NULL pointer.
authorGuus Sliepen <guus@meshlink.io>
Wed, 7 May 2014 20:43:25 +0000 (22:43 +0200)
committerGuus Sliepen <guus@meshlink.io>
Wed, 7 May 2014 20:43:25 +0000 (22:43 +0200)
examples/chat.c

index 21ced7b092ad0ee17d1021581e3bbddf506e7bc0..a735cb1a0b2f6a05cfe9f4aab85c5fb03d9167bf 100644 (file)
@@ -151,7 +151,7 @@ int main(int argc, char *argv[]) {
 
        meshlink_handle_t *mesh = meshlink_open(confbase, nick);
        if(!mesh) {
-               fprintf(stderr, "Could not open MeshLink: %s\n", mesh->errstr);
+               fprintf(stderr, "Could not open MeshLink!\n");
                return 1;
        }