From be51328c8bddfcfe413017273f8c1d3d7bd2f034 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Wed, 17 Nov 1999 21:50:35 +0000 Subject: [PATCH] ITS#349: if user hits RETURN at "Change base to?", return to UD prompt. --- clients/ud/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 */ -- 2.39.5