From 62223e8fbbccac5581da1464081662b44f8a6e03 Mon Sep 17 00:00:00 2001 From: Calvin Lee Date: Thu, 13 Jul 2017 07:47:21 -0700 Subject: 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. --- include/swaybar/tray/sni.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/swaybar/tray') 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); -- cgit v1.2.3-54-g00ecf