diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2011-05-08 14:54:29 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2011-05-08 14:54:29 +0200 |
commit | 3ea396c8d22d995f63e88b24ea85a881b6139280 (patch) | |
tree | 12f106178de0b3a6e65fd05f4786fe577f148728 /odk | |
parent | 3b8b6cef107bdf209e6258c5bb4d51e880f6ecf6 (diff) |
Some cppcheck cleaning
Diffstat (limited to 'odk')
-rw-r--r-- | odk/source/unoapploader/unx/unoapploader.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/odk/source/unoapploader/unx/unoapploader.c b/odk/source/unoapploader/unx/unoapploader.c index 969008dff396..391667a9c70d 100644 --- a/odk/source/unoapploader/unx/unoapploader.c +++ b/odk/source/unoapploader/unx/unoapploader.c @@ -267,7 +267,6 @@ char* createCommandName( char* argv0 ) #ifndef AIX Dl_info dl_info; #endif - int pos; /* get the executable file name from argv0 */ prgname = argv0; @@ -293,7 +292,7 @@ char* createCommandName( char* argv0 ) sep = strrchr( prgname, SEPARATOR ); if ( sep != NULL ) { - pos = ++sep - prgname; + int pos = ++sep - prgname; strncpy( cmdname, prgname, pos ); cmdname[ pos ] = '\0'; strcat( cmdname, CMDPREFIX ); |