diff options
-rw-r--r-- | src/ui_act.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui_act.c b/src/ui_act.c index 8782532..1ba4277 100644 --- a/src/ui_act.c +++ b/src/ui_act.c @@ -131,7 +131,8 @@ void BarUiActCreateStation (BAR_KS_ARGS) { void BarUiActAddSharedStation (BAR_KS_ARGS) { char *stationId = NULL; - if ((stationId = readline ("Station id: ")) != NULL) { + if ((stationId = readline ("Station id: ")) != NULL && + strlen (stationId) > 0) { BarUiMsg ("Adding shared station... "); BarUiPrintPianoStatus (PianoCreateStation (ph, "sh", stationId)); free (stationId); |