src/message.c
changeset 109 297efc53ba70
parent 106 2314840107ce
child 113 4bee48270834
     1.1 --- a/src/message.c	Wed Mar 11 16:31:59 2015 +0100
     1.2 +++ b/src/message.c	Wed Mar 11 16:39:06 2015 +0100
     1.3 @@ -119,6 +119,7 @@
     1.4  
     1.5      if (src->sent) {
     1.6          msg->sent = malloc(sizeof(timestamp));
     1.7 +        assert(msg->sent);
     1.8          if (msg->sent == NULL)
     1.9              goto enomem;
    1.10          memcpy(msg->sent, src->sent, sizeof(timestamp));
    1.11 @@ -126,6 +127,7 @@
    1.12  
    1.13      if (src->recv) {
    1.14          msg->recv = malloc(sizeof(timestamp));
    1.15 +        assert(msg->recv);
    1.16          if (msg->recv == NULL)
    1.17              goto enomem;
    1.18          memcpy(msg->recv, src->recv, sizeof(timestamp));