diff options
author | Calvin Lee <cyrus296@gmail.com> | 2017-07-13 07:47:21 -0700 |
---|---|---|
committer | Calvin Lee <cyrus296@gmail.com> | 2017-07-13 07:47:21 -0700 |
commit | 62223e8fbbccac5581da1464081662b44f8a6e03 (patch) | |
tree | 3ed23fe4384bbc81e2bd9da71a28264aec0742fd /include/swaybar | |
parent | 13ed84e8865c02b808444202e6e347d870c5d0e9 (diff) |
Don't trust SNI names, fixes #1274
If an item doesn't have a well-formed name, it will not be added to the
tray.
Diffstat (limited to 'include/swaybar')
-rw-r--r-- | include/swaybar/tray/sni.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/swaybar/tray/sni.h b/include/swaybar/tray/sni.h index 83809b2d..c2544e2a 100644 --- a/include/swaybar/tray/sni.h +++ b/include/swaybar/tray/sni.h @@ -28,6 +28,7 @@ void sni_icon_ref_free(struct sni_icon_ref *sni_ref); /** * Will return a new item and get its icon. (see warning below) + * May return `NULL` if `name` is not valid. */ struct StatusNotifierItem *sni_create(const char *name); |