git-query
git data extraction tool using c and libgit2
git clone https://9o.is/git/git-query.git
commit ab535f684919ccdad38aa00155489b5045a0e159 parent fb5d4358623757f2fdbb21b28a2fcf59e923e058 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sun, 15 Nov 2020 20:58:58 +0100 avoid shadowed `name' global variable by Augustin Fabre <augustin@augfab.fr> Diffstat:
| M | stagit.c | | | 6 | +++--- |
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/stagit.c b/stagit.c @@ -348,12 +348,12 @@ err: } FILE * -efopen(const char *name, const char *flags) +efopen(const char *filename, const char *flags) { FILE *fp; - if (!(fp = fopen(name, flags))) - err(1, "fopen: '%s'", name); + if (!(fp = fopen(filename, flags))) + err(1, "fopen: '%s'", filename); return fp; }