search for: next_stream

Displaying 1 result from an estimated 1 matches for "next_stream".

Did you mean: get_stream
2000 Jun 19
1
PATCH: Falling off the end of linked lists.
...- exit (1); + if (num < 0) + { + fprintf (stderr, "Internal error: get_stream called with a negative argument.\n"); + exit (1); + } + else + if (num == 0) + { + return streams_list->stream; + } + else + { + return get_stream ( num--, streams_list->next_stream ); + } } else - if (num == 0) - { - return streams_list->stream; - } - else - { - return get_stream ( num--, streams_list->next_stream ); - } + { + fprintf (stderr, "Internal error: get_stream called with NULL stream_list.\n"); + exi...