Revision f9a86917 streaming.c

View differences:

streaming.c
57 57
  int res;
58 58
  struct chunk c;
59 59

  
60
  if (input_get(input, &c) <= 0) {
61
    fprintf(stderr, "Error in input!\n");
62
    exit(-1);
60
  while ((res = input_get(input, &c)) <= 0) {
61
    if (res < 0) {
62
      fprintf(stderr, "Error in input!\n");
63
      exit(-1);
64
    }
63 65
  }
64 66
  res = cb_add_chunk(cb, &c);
65 67
  if (res < 0) {

Also available in: Unified diff