diff options
| author | bakkeby <[email protected]> | 2021-05-05 08:18:00 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2021-05-05 08:32:47 +0200 |
| commit | 579f8f892b45b89355f48563c854bffd6b29a1d8 (patch) | |
| tree | d5ec097e2b53be473f8832d8170dc9b8ed7ef513 /patch | |
| parent | 3bf6eeca758dcd9387842c4a1ddf8b0eb33c3073 (diff) | |
| download | dwm-flexipatch-579f8f892b45b89355f48563c854bffd6b29a1d8.tar.gz dwm-flexipatch-579f8f892b45b89355f48563c854bffd6b29a1d8.zip | |
ipc: get_tags - do not dump tag if the tag is null ref. #123
Diffstat (limited to 'patch')
| -rw-r--r-- | patch/ipc/yajl_dumps.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/patch/ipc/yajl_dumps.c b/patch/ipc/yajl_dumps.c index 83889fc..2c334ef 100644 --- a/patch/ipc/yajl_dumps.c +++ b/patch/ipc/yajl_dumps.c @@ -5,13 +5,15 @@ int dump_tag(yajl_gen gen, const char *name, const int tag_mask) { + if (!name) + return; + // clang-format off YMAP( YSTR("bit_mask"); YINT(tag_mask); YSTR("name"); YSTR(name); ) // clang-format on - return 0; } |
