Website Summary Files Commits Branches @commit @diff @stats
path: root / src / UserInterface / VenueConsoleUI.cpp
diff options
context:
space:
mode:
1 files changed, 1 insertions, 1 deletions
-rw-r--r--src/UserInterface/VenueConsoleUI.cpp2
diff --git a/src/UserInterface/VenueConsoleUI.cpp b/src/UserInterface/VenueConsoleUI.cpp
index c33c614..cd73dc5 100644
--- a/src/UserInterface/VenueConsoleUI.cpp
+++ b/src/UserInterface/VenueConsoleUI.cpp
@@ -48,7 +48,7 @@ void command_freeSeats() {
unsigned seatsPerRow = 0;
char* seating = nullptr;
es->createSeatingString(name, date, &seatsPerRow, seating);
- if (strlen(seating) == 0) {
+ if (seating == nullptr) {
handleStatusCode(E_EventDoesNotExist, ticketManagementMenu);
return;
}