* mu-str.h: improve mu_str_is_empty macro

This commit is contained in:
Dirk-Jan C. Binnema 2011-03-22 23:37:17 +02:00
parent adf45c4ee0
commit 054282dc63
1 changed files with 1 additions and 1 deletions

View File

@ -259,7 +259,7 @@ char* mu_str_escape_c_literal (const gchar* str)
*
* @return TRUE if the string is empty, FALSE otherwise
*/
#define mu_str_is_empty(S) ((!(S)||!(S)[0])?TRUE:FALSE)
#define mu_str_is_empty(S) ((!(S)||!(*S))?TRUE:FALSE)