pike.git / src / post_modules / Shuffler / d_source_pikestream.c

version» Context lines:

pike.git/src/post_modules/Shuffler/d_source_pikestream.c:73:    free_string(s->str);    s->str = 0;    }   }      static struct data get_data( struct source *src, off_t len )   {    struct pf_source *s = (struct pf_source *)src;    struct data res;    +  res.data = NULL;    res.len = s->available;    if (s->eof)    s->s.eof = 1;    if (s->available) {    res.data = s->data;    s->available = 0;    } else if (!s->obj->prog) { /* Object imploded before we were done */    s->s.eof = 1; /* FIXME should we throw an error here? */    } else {    /* No data available, but there should be in the future (no EOF, nor