webengine/wmlengine/src/utils/src/nw_nvpair.c
changeset 36 0ed94ceaa377
parent 0 dd21522fd290
child 58 220a17280356
equal deleted inserted replaced
32:9a9a761f03f1 36:0ed94ceaa377
   144   NW_ASSERT( thisObj != NULL );
   144   NW_ASSERT( thisObj != NULL );
   145   NW_ASSERT( thisObj->iterPtr == NULL );
   145   NW_ASSERT( thisObj->iterPtr == NULL );
   146   NW_ASSERT( thisObj->strTable == NULL );
   146   NW_ASSERT( thisObj->strTable == NULL );
   147   NW_ASSERT( name != NULL ); 
   147   NW_ASSERT( name != NULL ); 
   148   
   148   
   149   if (name[0] == '\0') {
   149   if (name[0] == '\0' ||  value[0] == '\0') {
   150 
   150 
   151       return KBrsrSuccess;
   151       return KBrsrSuccess;
   152   }
   152   }
   153 
   153 
   154   thisObj->size = thisObj->size + NW_Str_Strlen( name ) + 1;
   154   thisObj->size = thisObj->size + NW_Str_Strlen( name ) + 1;