Fix issue where ctx may have been accessed NULL in flanterm_fb_init()
mintsuki 2 years ago ef07a10c 88740ef4
··· 1142 1142 return _ctx; 1143 1143 1144 1144 fail: 1145 1145 + if (ctx == NULL) { 1146 1146 + return NULL; 1147 1147 + } 1148 1148 + 1145 1149 #ifndef FLANTERM_FB_DISABLE_BUMP_ALLOC 1146 1150 if (_malloc == bump_alloc) { 1147 1151 bump_alloc_ptr = 0;