easy: fix the #include order

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
This commit is contained in:
Daniel Stenberg 2022-09-21 11:17:32 +02:00
parent fd1ce3d4b0
commit 1998f34d54
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -82,11 +82,12 @@
#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;