mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-04 17:51:03 +00:00
[core] scan-build: Dereference of null pointer (loaded from variable 'txt') - switch_img_write_text_img()
This commit is contained in:
parent
8f8e74cae9
commit
8247dfc475
@ -2139,6 +2139,10 @@ SWITCH_DECLARE(switch_image_t *) switch_img_write_text_img(int w, int h, switch_
|
||||
switch_image_t *txtimg = NULL;
|
||||
int x = 0, y = 0;
|
||||
|
||||
if (!duptxt) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (strchr(text, ':')) {
|
||||
argc = switch_split(duptxt, ':', argv);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user