mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-15 17:47:09 +00:00
Confirm pointer is not null and use sizeof object instead of struct
This commit is contained in:
parent
ddb70b4ba9
commit
6bda01266b
@ -92,7 +92,7 @@ PRSS::~PRSS() {
|
||||
}
|
||||
|
||||
static inline void prss_null_item(PRSS_Item *i) {
|
||||
memset(i, 0, sizeof(PRSS_Item));
|
||||
if (i != nullptr) { memset(i, 0, sizeof(*i)); }
|
||||
}
|
||||
|
||||
static inline void read_item(PRSS_Item *res, xmlNodePtr data) {
|
||||
|
Loading…
Reference in New Issue
Block a user