Small simplify

This commit is contained in:
Stas Degteff 2011-02-22 14:51:06 +00:00
parent a1ba13fa7c
commit 841f70e850

View File

@ -143,10 +143,12 @@ void update_statusline(const char* info) {
LOG.printf( "! Parameter is NULL pointer: update_statusline(NULL)."); LOG.printf( "! Parameter is NULL pointer: update_statusline(NULL).");
strxcpy(information, UPDATE_STATUSLINE_ERROR, sizeof(information)); strxcpy(information, UPDATE_STATUSLINE_ERROR, sizeof(information));
} }
else else if (*info)
{ {
strxcpy(information, info, sizeof(information)); strxcpy(information, info, sizeof(information));
} }
else
*information = '\0';
update_statuslines(); update_statuslines();
} }