summaryrefslogtreecommitdiffstats
path: root/src/if_python.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/if_python.c')
-rw-r--r--src/if_python.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/if_python.c b/src/if_python.c
index d0ce4015a9..dbbe602e0c 100644
--- a/src/if_python.c
+++ b/src/if_python.c
@@ -2160,7 +2160,7 @@ WinListLength(PyObject *self)
win_T *w = firstwin;
int n = 0;
- while (w)
+ while (w != NULL)
{
++n;
w = W_NEXT(w);
@@ -2175,7 +2175,7 @@ WinListItem(PyObject *self, int n)
{
win_T *w;
- for (w = firstwin; w; w = W_NEXT(w), --n)
+ for (w = firstwin; w != NULL; w = W_NEXT(w), --n)
if (n == 0)
return WindowNew(w);