From: Lukas Fleischer Date: Sun, 3 Mar 2013 16:27:46 +0000 (+0100) Subject: ui-blob.c: Use a context structure in walk_tree() X-Git-Url: https://gitweb.ps.run/ps-cgit/commitdiff_plain/41f9c4e2f66252c83c6524fa4a346839d4c454b2?hp=41f9c4e2f66252c83c6524fa4a346839d4c454b2 ui-blob.c: Use a context structure in walk_tree() 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 ---