Changeset 5341

Show
Ignore:
Timestamp:
03/01/08 09:23:46 (4 months ago)
Author:
morris
Message:

Don't crash if no comment

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • libwired/trunk/libwired/file/wi-file.c

    r5339 r5341  
    747747        cfComment = MDItemCopyAttribute(item, kMDItemFinderComment); 
    748748         
     749        if(!cfComment) 
     750                goto end; 
     751         
    749752        if(!CFStringGetCString(cfComment, buffer, sizeof(buffer), kCFStringEncodingUTF8)) { 
    750753                wi_error_set_carbon_error(0);