mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-23 04:26:50 +03:00
Dodge Coverity scan issue.
This commit is contained in:
parent
f814debfe2
commit
640bb77330
@ -1661,7 +1661,9 @@ static bool textarea_undo(struct textarea *ta, bool forward,
|
||||
false, &byte_delta, r);
|
||||
|
||||
/* Update undo buffer for redo */
|
||||
memcpy(ta->undo.text.data + detail->b_start, temp, b_text_len);
|
||||
if (temp != NULL)
|
||||
memcpy(ta->undo.text.data + detail->b_start, temp, b_text_len);
|
||||
|
||||
detail->b_text_end = detail->b_text_start + b_len;
|
||||
detail->b_end = detail->b_start + b_text_len;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user