diff options
author | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2017-11-30 11:17:05 +0100 |
---|---|---|
committer | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2017-11-30 11:17:05 +0100 |
commit | 2b918fd9b8438eeef8f33556723140263e36f731 (patch) | |
tree | 0bdda333a8822fe71c60e42d19a3078019ee38d0 /src/fe-common | |
parent | b332d448f7e3c7e4b40ea4a08932d0bd46007bbf (diff) | |
download | irssi-2b918fd9b8438eeef8f33556723140263e36f731.zip |
move decls before code
Diffstat (limited to 'src/fe-common')
-rw-r--r-- | src/fe-common/core/fe-windows.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fe-common/core/fe-windows.c b/src/fe-common/core/fe-windows.c index 0afa2914..93f2e3f3 100644 --- a/src/fe-common/core/fe-windows.c +++ b/src/fe-common/core/fe-windows.c @@ -563,8 +563,10 @@ GSList *windows_get_sorted(void) begin = windows_seq_begin(); while (iter != begin) { + WINDOW_REC *rec; + iter = g_sequence_iter_prev(iter); - WINDOW_REC *rec = g_sequence_get(iter); + rec = g_sequence_get(iter); sorted = g_slist_prepend(sorted, rec); } |