Commit c9ff5cfb authored by Igor Babaev's avatar Igor Babaev

Fixed a crash in compare_window_frames().

The function did not take into account the case when only one of
of the pointers to the compared frames is NULL.
parent 2078392c
......@@ -319,6 +319,12 @@ int compare_window_frames(Window_frame *win_frame1,
if (win_frame1 == win_frame2)
return 0;
if (!win_frame1)
return 2;
if (!win_frame2)
return -2;
if (win_frame1->units != win_frame2->units)
return win_frame1->units > win_frame2->units ? -2 : 2;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment