From: Kurt Zeilenga Date: Wed, 17 Nov 1999 21:50:35 +0000 (+0000) Subject: ITS#349: if user hits RETURN at "Change base to?", return to UD prompt. X-Git-Tag: UCDATA_2_4~203 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=be51328c8bddfcfe413017273f8c1d3d7bd2f034;p=openldap ITS#349: if user hits RETURN at "Change base to?", return to UD prompt. --- diff --git a/clients/ud/main.c b/clients/ud/main.c index 7f0d4baa3d..80428fec8f 100644 --- a/clients/ud/main.c +++ b/clients/ud/main.c @@ -353,7 +353,7 @@ change_base( int type, char **base, char *s ) /* * If s is NULL we need to prompt the user for an argument. */ - while (s == NULL) { + if (s == NULL) { if (verbose) { printf(" You need to specify how the base is to be changed. Valid choices are:\n"); printf(" ? - list the choices immediately below this level\n"); @@ -367,6 +367,8 @@ change_base( int type, char **base, char *s ) fetch_buffer(buf, sizeof(buf), stdin); if ((buf != NULL) && (buf[0] != '\0')) s = buf; + else + return; } /* set the output string */