string-helpers.c: add string_empty()

This commit is contained in:
Johan Malm 2024-01-19 19:06:07 +00:00 committed by Johan Malm
parent 8c9be2f0d1
commit c066821046
9 changed files with 27 additions and 14 deletions

View file

@ -7,6 +7,7 @@
#include "common/mem.h"
#include "common/scaled_font_buffer.h"
#include "common/scene-helpers.h"
#include "common/string-helpers.h"
#include "labwc.h"
#include "node.h"
#include "ssd-internal.h"
@ -325,7 +326,7 @@ ssd_update_title(struct ssd *ssd)
struct view *view = ssd->view;
char *title = (char *)view_get_string_prop(view, "title");
if (!title || !*title) {
if (string_null_or_empty(title)) {
return;
}