LemonBoy / bar

A featherweight, lemon-scented, bar based on xcb
MIT License
1.61k stars 194 forks source link

Return value of 'malloc' not checked #240

Closed emixa-d closed 2 years ago

emixa-d commented 2 years ago

I noticed that in lemonbar.c, lines 789--790, the return value of 'malloc' is not checked, even though it could be NULL.

(Originally noticed at https://issues.guix.gnu.org/54252#1)

LemonBoy commented 2 years ago

Hello, I believe the latest commit solves the problem w/ malloc and strdup return values not being checked in some cases.