WaE: declaration of 'index' shadows a global declaration
Change-Id: I83a0fb26b4d376a2b9e221179fdc55a6b7900649
This commit is contained in:
parent
53d39155ca
commit
bc406009d1
1 changed files with 4 additions and 4 deletions
|
@ -87,7 +87,7 @@ int main(int argc, char *argv[] )
|
|||
{
|
||||
GError *error = NULL;
|
||||
char *fallback;
|
||||
char *index;
|
||||
char *idx;
|
||||
int retcode = -1;
|
||||
|
||||
if( argc != 2 )
|
||||
|
@ -108,11 +108,11 @@ int main(int argc, char *argv[] )
|
|||
*/
|
||||
|
||||
fallback = strdup(argv[0]);
|
||||
index = strstr(fallback, "gnome-open-url");
|
||||
if ( NULL != index )
|
||||
idx = strstr(fallback, "gnome-open-url");
|
||||
if ( NULL != idx )
|
||||
{
|
||||
char *args[3];
|
||||
strncpy(index, "open-url", 9);
|
||||
strncpy(idx, "open-url", 9);
|
||||
args[0] = fallback;
|
||||
args[1] = argv[1];
|
||||
args[2] = NULL;
|
||||
|
|
Loading…
Reference in a new issue