URI: 
       tFactor out check for NULL frame - ratox - FIFO based tox client
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit 8cf5ff98325f2899c4ecc932440c228f1f46a46b
   DIR parent 5f895de8fdc58c4e1b51ffd982bf4c469015d0ff
  HTML Author: sin <sin@2f30.org>
       Date:   Sun,  5 Oct 2014 21:46:07 +0100
       
       Factor out check for NULL frame
       
       Diffstat:
         M ratox.c                             |       5 ++---
       
       1 file changed, 2 insertions(+), 3 deletions(-)
       ---
   DIR diff --git a/ratox.c b/ratox.c
       t@@ -445,8 +445,6 @@ cbcallringing(void *av, int32_t cnum, void *udata)
        static void
        preparetxcall(struct friend *f)
        {
       -        if (f->av.frame)
       -                return;
                f->av.frame = malloc(sizeof(int16_t) * framesize);
                if (!f->av.frame)
                        eprintf("malloc:");
       t@@ -580,7 +578,8 @@ sendfriendcalldata(struct friend *f)
                ssize_t n, payloadsize;
                struct timespec now, diff;
        
       -        preparetxcall(f);
       +        if (!f->av.frame)
       +                preparetxcall(f);
        
                n = fiforead(f->dirfd, &f->fd[FCALL_IN], ffiles[FCALL_IN],
                             f->av.frame + f->av.incompleteframe * f->av.n,