diff options
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/eurephia.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/eurephia.c b/plugin/eurephia.c index 03224f1..a716e1d 100644 --- a/plugin/eurephia.c +++ b/plugin/eurephia.c @@ -122,7 +122,7 @@ eurephiaCTX *eurephiaInit(const char const **argv, const char const **envp, // Put the rest of the arguments into an own array which will be the db module arguments if( optind < argc ) { // copy arguments, but make sure we do not exceed our limit - while( (optind < argc) && (dbargc < MAX_ARGUMENTS) ) { + while( (dbargc < MAX_ARGUMENTS) && (optind < argc) ) { dbargv[dbargc] = argv[optind++]; dbargc++; dbargv[dbargc] = NULL; |