From ca20785f572b6869d0e1324354ba44caaa7a6347 Mon Sep 17 00:00:00 2001
From: Antoine Fontaine <antoine.fontaine@epfl.ch>
Date: Sat, 3 Aug 2019 16:15:41 +0200
Subject: [PATCH] fixup! Make `struct Courses` sightly more consistent with
 rest of the file

---
 src/moodle-parser.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/moodle-parser.c b/src/moodle-parser.c
index 95d5471..0da4b38 100644
--- a/src/moodle-parser.c
+++ b/src/moodle-parser.c
@@ -219,7 +219,7 @@ moodle_parse_course_list (const gchar *html, gsize html_size, const gchar *filen
   myhtml_collection_destroy (hrefs);
   myhtml_tree_destroy (tree);
 
-  struct Courses courses_struct = {courses, count};
+  struct Courses courses_struct = {count, courses};
   return courses_struct;
 }
 
-- 
GitLab