summaryrefslogtreecommitdiff
path: root/src/paramproc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/paramproc.cpp')
-rw-r--r--src/paramproc.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/paramproc.cpp b/src/paramproc.cpp
index f016b78..d97821a 100644
--- a/src/paramproc.cpp
+++ b/src/paramproc.cpp
@@ -240,7 +240,7 @@ void Bu::ParamProc::process( int argc, char *argv[] )
240 { 240 {
241 if( s->val.isSet() ) 241 if( s->val.isSet() )
242 { 242 {
243 if( s->sValue.getStr() == NULL ) 243 if( s->sValue == "" )
244 { 244 {
245 s->val = argv[arg]+s->sWord.getSize()+3; 245 s->val = argv[arg]+s->sWord.getSize()+3;
246 } 246 }
@@ -268,7 +268,7 @@ void Bu::ParamProc::process( int argc, char *argv[] )
268 int add = 0; 268 int add = 0;
269 if( s->val.isSet() ) 269 if( s->val.isSet() )
270 { 270 {
271 if( s->sValue.getStr() == NULL ) 271 if( s->sValue == "" )
272 { 272 {
273 if( arg+1 >= argc ) 273 if( arg+1 >= argc )
274 { 274 {
@@ -314,7 +314,7 @@ void Bu::ParamProc::process( int argc, char *argv[] )
314 bool bUsed = false; 314 bool bUsed = false;
315 if( s->val.isSet() ) 315 if( s->val.isSet() )
316 { 316 {
317 if( s->sValue.getStr() == NULL ) 317 if( s->sValue == "" )
318 { 318 {
319 s->val = argv[arg]+chr+1; 319 s->val = argv[arg]+chr+1;
320 bUsed = true; 320 bUsed = true;
@@ -349,7 +349,7 @@ void Bu::ParamProc::process( int argc, char *argv[] )
349 bool bUsed = false; 349 bool bUsed = false;
350 if( s->val.isSet() ) 350 if( s->val.isSet() )
351 { 351 {
352 if( s->sValue.getStr() == NULL ) 352 if( s->sValue == "" )
353 { 353 {
354 s->val = argv[arg+1]; 354 s->val = argv[arg+1];
355 bUsed = true; 355 bUsed = true;
@@ -397,7 +397,7 @@ Bu::ParamProc::ArgSpec *Bu::ParamProc::checkWord( const char *arg )
397 std::list<ArgSpec *>::const_iterator i; 397 std::list<ArgSpec *>::const_iterator i;
398 for( i = lArg.begin(); i != lArg.end(); i++ ) 398 for( i = lArg.begin(); i != lArg.end(); i++ )
399 { 399 {
400 if( (*i)->sWord.getStr() == NULL ) 400 if( (*i)->sWord == "" )
401 continue; 401 continue;
402 402
403 if( !strcmp( (*i)->sWord.getStr(), arg ) ) 403 if( !strcmp( (*i)->sWord.getStr(), arg ) )