mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
Fix shadowed variable with older gcc
Commit2cff94c
fixed the shadowed 'link' added by commit975f0e2
, but forgot the 'link' added by commit08aa22e
.
This commit is contained in:
parent
bffe8d2ddf
commit
ebd05fd562
@ -542,16 +542,16 @@ static const char *testPathCanonicalizeSymlinks[][2] =
|
||||
|
||||
static int
|
||||
testPathCanonicalizeReadlink(const char *path,
|
||||
char **link,
|
||||
char **linkpath,
|
||||
void *data ATTRIBUTE_UNUSED)
|
||||
{
|
||||
size_t i;
|
||||
|
||||
*link = NULL;
|
||||
*linkpath = NULL;
|
||||
|
||||
for (i = 0; i < ARRAY_CARDINALITY(testPathCanonicalizeSymlinks); i++) {
|
||||
if (STREQ(path, testPathCanonicalizeSymlinks[i][0])) {
|
||||
if (VIR_STRDUP(*link, testPathCanonicalizeSymlinks[i][1]) < 0)
|
||||
if (VIR_STRDUP(*linkpath, testPathCanonicalizeSymlinks[i][1]) < 0)
|
||||
return -1;
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user