Revision 71ce3f9c src/Chunkiser/input-stream-dumb.c

View differences:

src/Chunkiser/input-stream-dumb.c
47 47

  
48 48
    config_value_int(cfg_tags, "chunk_size", &res->chunk_size);
49 49
    access_mode = config_value_str(cfg_tags, "mode");
50
    if (!strcmp(access_mode, "nonblock")) {
50
    if (access_mode && !strcmp(access_mode, "nonblock")) {
51 51
      fcntl(res->fds[0], F_SETFL, O_NONBLOCK);
52 52
    }
53 53
  }

Also available in: Unified diff