From 5310070b38579f50b9f3236a2eb79d41085234c3 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Sun, 15 Nov 1998 06:55:20 +0000 Subject: [PATCH] don't assume NULL is zero. --- clients/gopher/go500.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/clients/gopher/go500.c b/clients/gopher/go500.c index e93b5504e8..367ecaebfe 100644 --- a/clients/gopher/go500.c +++ b/clients/gopher/go500.c @@ -426,8 +426,10 @@ int s; fprintf( fp, ".\r\n" ); rewind(fp); - if ( ld ) + + if ( ld == NULL) { ldap_unbind( ld ); + } exit( 1 ); /* NOT REACHED */ -- 2.39.5