Changeset 2981

Show
Ignore:
Timestamp:
11/06/08 10:48:39 (2 months ago)
Author:
kkaempf
Message:

fix potential segfault (Suresh Sundriyal <ssundriy@vmware.com>)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • openwsman/trunk/src/lib/wsman-xml-serialize.c

    r2940 r2981  
    10421042 
    10431043                        src = ws_xml_get_node_text(child); 
    1044                         if (src != NULL || *src != 0) { 
     1044                        if (src != NULL && *src != 0) { 
    10451045                                char *dstPtr; 
    10461046                                int dstSize = 1 + strlen(src);