]> gitweb.ps.run Git - ps-cgit/commitdiff
ui-blob.c: Use a context structure in walk_tree()
authorLukas Fleischer <cgit@cryptocrack.de>
Sun, 3 Mar 2013 16:27:46 +0000 (17:27 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Mon, 4 Mar 2013 14:12:54 +0000 (09:12 -0500)
Do not misuse global variables to save the context. Instead, use the
context pointer which was designed to share information between a
read_tree_fn and the caller.

This also prevents from potential misuse of the global pointers
match_path and matched_sha1 after the referenced values have been
overwritten on the stack.

Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>

No differences found