From: Kurt Zeilenga Date: Wed, 28 Apr 1999 20:04:37 +0000 (+0000) Subject: Apply ITS#148 fix for "ud find seg fault", NULL in printf X-Git-Tag: OPENLDAP_REL_ENG_1_2_2~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b97c4c350d513b414fdee50bb64bbc09902d694c;p=thirdparty%2Fopenldap.git Apply ITS#148 fix for "ud find seg fault", NULL in printf --- diff --git a/clients/ud/main.c b/clients/ud/main.c index 9480c63b7d..eb435cba61 100644 --- a/clients/ud/main.c +++ b/clients/ud/main.c @@ -225,9 +225,12 @@ do_commands( void ) parse_answer(mp); print_an_entry(); ldap_msgfree(mp); - } - else + + } else if (cp != NULL) { printf(" Could not find \"%s\".\n", cp); + } else { + printf(" Could not complete find.\n"); + } } #ifdef UOFM else if (iscom("vedit") && isatty( 1 )) {