diff --git a/golded3/geutil.cpp b/golded3/geutil.cpp index 5cf11b1..896afd8 100644 --- a/golded3/geutil.cpp +++ b/golded3/geutil.cpp @@ -143,10 +143,12 @@ void update_statusline(const char* info) { LOG.printf( "! Parameter is NULL pointer: update_statusline(NULL)."); strxcpy(information, UPDATE_STATUSLINE_ERROR, sizeof(information)); } - else + else if (*info) { strxcpy(information, info, sizeof(information)); } + else + *information = '\0'; update_statuslines(); }