فهرست منبع

Fix using uninitialized variable as condition.

Rokas Kupstys 8 سال پیش
والد
کامیت
80db75a068
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      nuklear.h

+ 1 - 1
nuklear.h

@@ -13760,7 +13760,7 @@ nk_scrollbar_behavior(nk_flags *state, struct nk_input *in,
     const struct nk_rect *empty1, float scroll_offset,
     const struct nk_rect *empty1, float scroll_offset,
     float target, float scroll_step, enum nk_orientation o)
     float target, float scroll_step, enum nk_orientation o)
 {
 {
-    nk_flags ws;
+    nk_flags ws = 0;
     int left_mouse_down;
     int left_mouse_down;
     int left_mouse_click_in_cursor;
     int left_mouse_click_in_cursor;
     float scroll_delta;
     float scroll_delta;