]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Don’t finalize hash buffer state in the unify mode code
authorJoel Rosdahl <joel@rosdahl.net>
Wed, 10 Apr 2019 20:19:32 +0000 (22:19 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 10 Apr 2019 20:19:32 +0000 (22:19 +0200)
The hash state needs to stay unfinalized since more bytes are fed into
it later.

Related to issue #374.

src/unify.c

index 7e2cd4775c4a8d2fcea5a906b08d2202a7146b66..4b727842fc378cf2be0d11537f853695b2d2f9d9 100644 (file)
@@ -1,5 +1,5 @@
 // Copyright (C) 2002 Andrew Tridgell
-// Copyright (C) 2009-2018 Joel Rosdahl
+// Copyright (C) 2009-2019 Joel Rosdahl
 //
 // This program is free software; you can redistribute it and/or modify it
 // under the terms of the GNU General Public License as published by the Free
@@ -117,7 +117,6 @@ pushchar(struct hash *hash, unsigned char c)
                        }
                        len = 0;
                }
-               hash_buffer(hash, NULL, 0);
                return;
        }