diff options
author | David Tardon <dtardon@redhat.com> | 2012-05-23 17:24:11 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2012-05-29 07:34:07 +0200 |
commit | bc406009d111c274b8ed8495f2858e29a4b63d27 (patch) | |
tree | 6124b387bca2da7f298022abb59f10d679900aa6 /shell/source | |
parent | 53d39155ca2996968a8619b2dd4cf582d2f20f11 (diff) |
WaE: declaration of 'index' shadows a global declaration
Change-Id: I83a0fb26b4d376a2b9e221179fdc55a6b7900649
Diffstat (limited to 'shell/source')
-rw-r--r-- | shell/source/unix/misc/gnome-open-url.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/shell/source/unix/misc/gnome-open-url.c b/shell/source/unix/misc/gnome-open-url.c index 5fe39ea2dc3a..ec47c2ab4cd4 100644 --- a/shell/source/unix/misc/gnome-open-url.c +++ b/shell/source/unix/misc/gnome-open-url.c @@ -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; |