diff options
Diffstat (limited to 'src/quickfix.c')
| -rw-r--r-- | src/quickfix.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/quickfix.c b/src/quickfix.c index 0502392c9..a2935bea9 100644 --- a/src/quickfix.c +++ b/src/quickfix.c @@ -2675,7 +2675,7 @@ qf_fill_buffer(qi) bt_quickfix(buf) buf_T *buf; { - return (buf->b_p_bt[0] == 'q'); + return buf != NULL && buf->b_p_bt[0] == 'q'; } /* @@ -2686,8 +2686,8 @@ bt_quickfix(buf) bt_nofile(buf) buf_T *buf; { - return (buf->b_p_bt[0] == 'n' && buf->b_p_bt[2] == 'f') - || buf->b_p_bt[0] == 'a'; + return buf != NULL && ((buf->b_p_bt[0] == 'n' && buf->b_p_bt[2] == 'f') + || buf->b_p_bt[0] == 'a'); } /* @@ -2697,7 +2697,7 @@ bt_nofile(buf) bt_dontwrite(buf) buf_T *buf; { - return (buf->b_p_bt[0] == 'n'); + return buf != NULL && buf->b_p_bt[0] == 'n'; } int |
