comparison src/channel.c @ 7872:4b9d4600166f v7.4.1233

commit https://github.com/vim/vim/commit/14ad611ca435d97e8fd0d9ab03ddc982843298ac Author: Bram Moolenaar <Bram@vim.org> Date: Mon Feb 1 21:47:13 2016 +0100 patch 7.4.1233 Problem: Channel command may cause a crash. Solution: Check for NULL argument. (Damien)
author Christian Brabandt <cb@256bit.org>
date Mon, 01 Feb 2016 22:00:05 +0100
parents 17e6ff1a74f1
children 98a96e0ca73b
comparison
equal deleted inserted replaced
7871:c5eb970c8c87 7872:4b9d4600166f
627 if (p_verbose > 2) 627 if (p_verbose > 2)
628 EMSG("E903: received ex command with non-string argument"); 628 EMSG("E903: received ex command with non-string argument");
629 return; 629 return;
630 } 630 }
631 arg = arg2->vval.v_string; 631 arg = arg2->vval.v_string;
632 if (arg == NULL)
633 arg = (char_u *)"";
632 634
633 if (STRCMP(cmd, "ex") == 0) 635 if (STRCMP(cmd, "ex") == 0)
634 { 636 {
635 do_cmdline_cmd(arg); 637 do_cmdline_cmd(arg);
636 } 638 }
645 } 647 }
646 else if (STRCMP(cmd, "redraw") == 0) 648 else if (STRCMP(cmd, "redraw") == 0)
647 { 649 {
648 exarg_T ea; 650 exarg_T ea;
649 651
650 ea.forceit = arg != NULL && *arg != NUL; 652 ea.forceit = *arg != NUL;
651 ex_redraw(&ea); 653 ex_redraw(&ea);
652 showruler(FALSE); 654 showruler(FALSE);
653 setcursor(); 655 setcursor();
654 out_flush(); 656 out_flush();
655 #ifdef FEAT_GUI 657 #ifdef FEAT_GUI