projects
/
privoxy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
enforce_header_order(): Save a couple of memory allocations
[privoxy.git]
/
parsers.c
diff --git
a/parsers.c
b/parsers.c
index
ba151d1
..
de1eea4
100644
(file)
--- a/
parsers.c
+++ b/
parsers.c
@@
-1211,8
+1211,8
@@
static void enforce_header_order(struct list *headers, const struct list *ordere
}
list_remove_all(headers);
}
list_remove_all(headers);
-
list_duplicate(headers, new_headers)
;
-
list_remove_all(new_headers)
;
+
headers->first = new_headers->first
;
+
headers->last = new_headers->last
;
return;
}
return;
}