]> git.proxmox.com Git - libgit2.git/commitdiff
Don't null-check
authorMatt Burke <spraints@gmail.com>
Thu, 24 Sep 2015 13:13:05 +0000 (09:13 -0400)
committerMatt Burke <spraints@gmail.com>
Thu, 24 Sep 2015 13:13:05 +0000 (09:13 -0400)
src/transports/smart.c

index 1ff39b48e0ec9ee03dd6426ed045b755b9ce57dc..fc7630c493ff86acb19d14333f01dd1cadc6a51a 100644 (file)
@@ -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)