comparison src/buffer.c @ 18546:f609865bfc54 v8.1.2267

patch 8.1.2267: compiler warning for uninitialized variable Commit: https://github.com/vim/vim/commit/3b991527e8167f25ad1dfe780b9633c153600955 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Nov 6 23:26:20 2019 +0100 patch 8.1.2267: compiler warning for uninitialized variable Problem: Compiler warning for uninitialized variable. (Tony Mechelynck) Solution: Rearrange the code.
author Bram Moolenaar <Bram@vim.org>
date Wed, 06 Nov 2019 23:30:03 +0100
parents 9e6d5a4abb1c
children bbea1f108187
comparison
equal deleted inserted replaced
18545:3bb39398b093 18546:f609865bfc54
3085 } 3085 }
3086 3086
3087 qsort(buflist.ga_data, (size_t)buflist.ga_len, 3087 qsort(buflist.ga_data, (size_t)buflist.ga_len,
3088 sizeof(buf_T *), buf_compare); 3088 sizeof(buf_T *), buf_compare);
3089 3089
3090 p = buflist_data = (buf_T **)buflist.ga_data; 3090 buflist_data = (buf_T **)buflist.ga_data;
3091 buf = *p; 3091 buf = *buflist_data;
3092 } 3092 }
3093 3093 p = buflist_data;
3094 for (; buf != NULL && !got_int; buf = buflist_data 3094
3095 for (; buf != NULL && !got_int; buf = buflist_data != NULL
3095 ? (++p < buflist_data + buflist.ga_len ? *p : NULL) 3096 ? (++p < buflist_data + buflist.ga_len ? *p : NULL)
3096 : buf->b_next) 3097 : buf->b_next)
3097 #else 3098 #else
3098 for (buf = firstbuf; buf != NULL && !got_int; buf = buf->b_next) 3099 for (buf = firstbuf; buf != NULL && !got_int; buf = buf->b_next)
3099 #endif 3100 #endif