From 3ea396c8d22d995f63e88b24ea85a881b6139280 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sun, 8 May 2011 14:54:29 +0200 Subject: Some cppcheck cleaning --- odk/source/unoapploader/unx/unoapploader.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'odk') 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 ); -- cgit