diff --git a/src/uifc/uifcx.c b/src/uifc/uifcx.c
index 71837c9e78055a2219c17c5f0674659033573a02..fb4c441552c785a277cc7316a7a0664e589fa2ad 100644
--- a/src/uifc/uifcx.c
+++ b/src/uifc/uifcx.c
@@ -206,7 +206,7 @@ int ulist(uifc_winmode_t mode, int left, int top, int width, int *cur, int *bar
     int optnumlen;
     int yesno=0;
     int lines;
-    int	tmpcur;
+    int	tmpcur=0;
 
 	if(cur == NULL)
 		cur = &tmpcur;