aboutsummaryrefslogtreecommitdiffstats
path: root/cgitrc.5.txt
diff options
context:
space:
mode:
authorLukas Fleischer <cgit@cryptocrack.de>2013-03-03 17:27:46 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2013-03-04 09:12:54 -0500
commit41f9c4e2f66252c83c6524fa4a346839d4c454b2 (patch)
tree2a80d6032308597cfebcf194f8860bf708bc13f4 /cgitrc.5.txt
parent973deda0eaf4e16c8cc0b25ca1bff1faae17584e (diff)
downloadcgit-41f9c4e2f66252c83c6524fa4a346839d4c454b2.tar.gz
cgit-41f9c4e2f66252c83c6524fa4a346839d4c454b2.tar.bz2
cgit-41f9c4e2f66252c83c6524fa4a346839d4c454b2.zip
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 <cgit@cryptocrack.de>
Diffstat (limited to 'cgitrc.5.txt')
0 files changed, 0 insertions, 0 deletions