mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-07 13:35:00 +00:00
Merge pull request #303 from dragos-oancea/switch_core_video-nullptr
[core] scan-build: Dereference of null pointer (loaded from variable 'txt') - switch_img_write_text_img(
This commit is contained in:
commit
9ede52517c
@ -2139,6 +2139,10 @@ SWITCH_DECLARE(switch_image_t *) switch_img_write_text_img(int w, int h, switch_
|
|||||||
switch_image_t *txtimg = NULL;
|
switch_image_t *txtimg = NULL;
|
||||||
int x = 0, y = 0;
|
int x = 0, y = 0;
|
||||||
|
|
||||||
|
if (!duptxt) {
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
if (strchr(text, ':')) {
|
if (strchr(text, ':')) {
|
||||||
argc = switch_split(duptxt, ':', argv);
|
argc = switch_split(duptxt, ':', argv);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user