curl_json plugin: avoid accessing off the end of the avl_tree_s
[collectd.git] / src / curl_json.c
index 89fce16..009f718 100644 (file)
@@ -48,10 +48,10 @@ struct cj_key_s;
 typedef struct cj_key_s cj_key_t;
 struct cj_key_s /* {{{ */
 {
+  unsigned long magic;
   char *path;
   char *type;
   char *instance;
-  unsigned long magic;
 };
 /* }}} */