]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
easy: fix the #include order
authorDaniel Stenberg <daniel@haxx.se>
Wed, 21 Sep 2022 09:17:32 +0000 (11:17 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 21 Sep 2022 21:15:15 +0000 (23:15 +0200)
The mentioned "last 3 includes" order should be respected. easy_lock.h should
be included before those three.

Reported-by: Yuriy Chernyshov
Fixes #9560
Closes #9561

lib/easy.c

index 3a190d74d9d8e649b1b87bef6bddd524f6b16aaf..88159f47441f81bae5aec5f913ef6ff062f812e9 100644 (file)
 #include "altsvc.h"
 #include "hsts.h"
 
+#include "easy_lock.h"
+
 /* The last 3 #include files should be in this order */
 #include "curl_printf.h"
 #include "curl_memory.h"
 #include "memdebug.h"
-#include "easy_lock.h"
 
 /* true globals -- for curl_global_init() and curl_global_cleanup() */
 static unsigned int  initialized;