mirror of https://github.com/djcb/mu.git
* mu-str.h: improve mu_str_is_empty macro
This commit is contained in:
parent
adf45c4ee0
commit
054282dc63
|
@ -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)
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue