Skip to content
Snippets Groups Projects
Commit be51328c authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

ITS#349: if user hits RETURN at "Change base to?", return to UD prompt.

parent 5f6f7d06
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment