From: Guus Sliepen Date: Wed, 7 May 2014 20:43:25 +0000 (+0200) Subject: Don't dereference a NULL pointer. X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=fcbee2208944dcd0ab93d5469ea5eeb490977c45;p=meshlink Don't dereference a NULL pointer. --- 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; }