~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/pbms/src/cslib/CSXML.cc

  • Committer: Mark Atwood
  • Date: 2011-06-30 07:03:08 UTC
  • mto: This revision was merged to the branch mainline in revision 2358.
  • Revision ID: me@mark.atwood.name-20110630070308-4380q6dqkkqv92w2
fix cppcheck redundantIfDelete0 warnings.  It is safe to deallocate a NULL pointer

Show diffs side-by-side

added added

removed removed

Lines of Context:
1414
1414
 
1415
1415
void CSXMLString::setNull()
1416
1416
{
1417
 
        if (stringPtr)
1418
 
                free(stringPtr);
 
1417
        free(stringPtr);
1419
1418
        stringPtr = NULL;
1420
1419
        stringLen = 0;
1421
1420
        stringSize = 0;