Changeset 2339

Show
Ignore:
Timestamp:
07/17/07 12:11:46 (1 year ago)
Author:
jerryyu
Message:

Fix bug #515: It's becaue a NULL pointer is passed to strlen().

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/palm/src/palm_format.c

    r2333 r2339  
    13901390         
    13911391        osync_trace(TRACE_SENSITIVE, "Entry: %s (%p)", entry->address.entry[i], entry->address.entry[i]); 
    1392         if (strlen(entry->address.entry[i]) > 0) 
     1392        if (entry->address.entry[i] && strlen(entry->address.entry[i]) > 0) 
    13931393                tmp = conv_enc_palm_to_xml(entry->address.entry[i]); 
    13941394