From fcbee2208944dcd0ab93d5469ea5eeb490977c45 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Wed, 7 May 2014 22:43:25 +0200 Subject: [PATCH] Don't dereference a NULL pointer. --- examples/chat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/chat.c b/examples/chat.c index 21ced7b0..a735cb1a 100644 --- a/examples/chat.c +++ b/examples/chat.c @@ -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; } -- 2.39.5