mirror of
https://github.com/labwc/labwc.git
synced 2025-11-03 09:01:51 -05:00
string-helpers.c: add string_empty()
This commit is contained in:
parent
8c9be2f0d1
commit
c066821046
9 changed files with 27 additions and 14 deletions
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
#include "common/mem.h"
|
||||
#include "common/list.h"
|
||||
#include "common/string-helpers.h"
|
||||
#include "config/libinput.h"
|
||||
#include "config/rcxml.h"
|
||||
|
||||
|
|
@ -27,7 +28,7 @@ libinput_category_init(struct libinput_category *l)
|
|||
enum lab_libinput_device_type
|
||||
get_device_type(const char *s)
|
||||
{
|
||||
if (!s || !*s) {
|
||||
if (string_null_or_empty(s)) {
|
||||
return LAB_LIBINPUT_DEVICE_NONE;
|
||||
}
|
||||
if (!strcasecmp(s, "default")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue