File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3990,7 +3990,7 @@ channel_send(
39903990 writeq_T * last = wq -> wq_prev ;
39913991
39923992 /* append to the last entry */
3993- if (ga_grow (& last -> wq_ga , len ) == OK )
3993+ if (len > 0 && ga_grow (& last -> wq_ga , len ) == OK )
39943994 {
39953995 mch_memmove ((char * )last -> wq_ga .ga_data
39963996 + last -> wq_ga .ga_len ,
@@ -4012,7 +4012,7 @@ channel_send(
40124012 wq -> wq_prev -> wq_next = last ;
40134013 wq -> wq_prev = last ;
40144014 ga_init2 (& last -> wq_ga , 1 , 1000 );
4015- if (ga_grow (& last -> wq_ga , len ) == OK )
4015+ if (len > 0 && ga_grow (& last -> wq_ga , len ) == OK )
40164016 {
40174017 mch_memmove (last -> wq_ga .ga_data , buf , len );
40184018 last -> wq_ga .ga_len = len ;
Original file line number Diff line number Diff line change @@ -777,6 +777,8 @@ static char *(features[]) =
777777
778778static int included_patches [] =
779779{ /* Add new patch number below this line */
780+ /**/
781+ 1653 ,
780782/**/
781783 1652 ,
782784/**/
You can’t perform that action at this time.
0 commit comments