Loading ...
Sorry, an error occurred while loading the content.

67226Re: Patch 7.3.715

Expand Messages
  • Christian Brabandt
    Nov 22, 2012
    • 0 Attachment
      Hi Dominique!

      On Do, 22 Nov 2012, Dominique Pellé wrote:

      > quickfix.c:
      >
      > 2861 if (wp != NULL)
      > 2862 qi = GET_LOC_LIST(wp);
      > 2863 #ifdef FEAT_AUTOCMD
      > 2864 if (au_name != NULL)
      > 2865 {
      > 2866 apply_autocmds(EVENT_QUICKFIXCMDPOST, au_name,
      > 2867 curbuf->b_fname,
      > TRUE, curbuf);
      > 2868 if (qi->qf_curlist < qi->qf_listcount)
      > 2869 res = qi->qf_lists[qi->qf_curlist].qf_count;
      > 2870 else
      > 2871 res = 0;
      > 2872 }
      >
      […]
      > Vim: Caught deadly signal SEGV
      > Vim: Finished.
      > Segmentation fault (core dumped)
      >
      > I don't know yet why some pointers are NULL but perhaps someone
      > can make sense of it.

      I see. Try this patch:
      diff --git a/src/quickfix.c b/src/quickfix.c
      --- a/src/quickfix.c
      +++ b/src/quickfix.c
      @@ -2863,7 +2863,7 @@
      {
      apply_autocmds(EVENT_QUICKFIXCMDPOST, au_name,
      curbuf->b_fname, TRUE, curbuf);
      - if (qi->qf_curlist < qi->qf_listcount)
      + if (qi != NULL && qi->qf_curlist < qi->qf_listcount)
      res = qi->qf_lists[qi->qf_curlist].qf_count;
      else
      res = 0;


      regards,
      Christian
      --
      Je mehr Leute es sind, die eine Sache glauben, desto größer ist die
      Wahrscheinlichkeit, daß die Ansicht falsch ist. Menschen, die Recht
      haben, stehen meistens allein.
      -- Søren Kierkegaard

      --
      You received this message from the "vim_dev" maillist.
      Do not top-post! Type your reply below the text you are replying to.
      For more information, visit http://www.vim.org/maillist.php
    • Show all 16 messages in this topic