if ((ar = g_hash_table_lookup (target, rh->name)) != NULL) {
g_ptr_array_add (ar, rh);
+ msg_debug_task ("append raw header %s: %s", rh->name, rh->value);
}
else {
ar = g_ptr_array_sized_new (2);
g_ptr_array_add (ar, rh);
g_hash_table_insert (target, rh->name, ar);
+ msg_debug_task ("add new raw header %s: %s", rh->name, rh->value);
}
-
- msg_debug_task ("add raw header %s: %s", rh->name, rh->value);
}
/* Convert raw headers to a list of struct raw_header * */
*/
gdouble rspamd_normalize_probability (gdouble x, gdouble bias);
-#define PTR_ARRAY_FOREACH(ar, i, cur) if (ar != NULL) for ((i) = 0, (cur) = g_ptr_array_index((ar), 0); (i) < (ar)->len; (cur) = g_ptr_array_index((ar), (i)), ++(i))
+#define PTR_ARRAY_FOREACH(ar, i, cur) if (ar != NULL) for ((i) = 0, (cur) = g_ptr_array_index((ar), 0); (i) < (ar)->len; (cur) = g_ptr_array_index((ar), (i + 1)), ++(i))
#endif