mirror of
https://git.proxmox.com/git/libgit2
synced 2026-01-04 21:21:02 +00:00
Don't null-check
This commit is contained in:
parent
098f1e6e25
commit
63cc57232c
@ -81,9 +81,6 @@ bool is_valid_custom_header(const char *custom_header)
|
||||
int name_len;
|
||||
unsigned long i;
|
||||
|
||||
if (custom_header == NULL)
|
||||
return true;
|
||||
|
||||
// Disallow \r and \n
|
||||
c = strchr(custom_header, '\r');
|
||||
if (c != NULL)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user