Changeset 6626


Ignore:
Timestamp:
Mar 12, 2013 6:42:03 AM (21 months ago)
Author:
tboeckel
Message:
  • rexx/mailinfo.c: added some NULL pointer checks. This refs #393.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r6621 r6626  
    55$Id$ 
    66$URL$ 
     7 
     82013-03-12 Thore Böckelmann <tboeckel@gmx.de> 
     9 
     10  * rexx/mailinfo.c: added some NULL pointer checks. This refs #393. 
    711 
    8122013-03-10 Jens Langner <Jens.Langner@light-speed.de> 
  • trunk/src/rexx/mailinfo.c

    r6522 r6626  
    116116        optional->active = args->index[0]; 
    117117        DoMethod(lv, MUIM_NList_GetEntry, optional->active, &mail); 
    118         folder = mail->Folder; 
     118        if(mail != NULL) 
     119          folder = mail->Folder; 
    119120      } 
    120121      else 
     
    137138          if(hasStatusError(mail)) 
    138139            results->status = "E"; // Error status 
    139           else if(isOutgoingFolder(mail->Folder)) 
     140          else if(mail->Folder != NULL && isOutgoingFolder(mail->Folder)) 
    140141            results->status = "W"; // Queued (WaitForSend) status 
    141           else if(isDraftsFolder(mail->Folder)) 
     142          else if(mail->Folder != NULL && isDraftsFolder(mail->Folder)) 
    142143            results->status = "H"; // Hold status 
    143144          else if(hasStatusSent(mail)) 
     
    238239            params->rc = RETURN_ERROR; 
    239240 
    240           DateStamp2String(results->date = optional->date, sizeof(optional->date), &mail->Date, DSS_USDATETIME, TZC_LOCAL); 
     241          DateStamp2String(optional->date, sizeof(optional->date), &mail->Date, DSS_USDATETIME, TZC_LOCAL); 
     242          results->date = optional->date; 
    241243          results->subject = mail->Subject; 
    242244          results->size = &mail->Size; 
Note: See TracChangeset for help on using the changeset viewer.