From b97c4c350d513b414fdee50bb64bbc09902d694c Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Wed, 28 Apr 1999 20:04:37 +0000 Subject: [PATCH] Apply ITS#148 fix for "ud find seg fault", NULL in printf --- clients/ud/main.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 )) { -- 2.47.2