mirror of
git://git.codemadness.org/stagit
synced 2025-03-08 15:49:10 -05:00
avoid shadowed `name' global variable
by Augustin Fabre <augustin@augfab.fr>
This commit is contained in:
parent
9467f347a2
commit
4f60446c01
6
stagit.c
6
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user