On Tue, 25 Aug 1998, Ryan Guthrie wrote:
>FYI: GDB produces t being null on lines refering to t->history_pos
[...]
> if (t->history[t->history_pos])
> free(t->history[t->history_pos]); /* Clear the old line. */
> t->history[t->history_pos] = str_dup(tmp); /* Save the new. */
> if (++t->history_pos >= HISTORY_SIZE) /* Wrap to top. */
> t->history_pos = 0;
> }
history_pos is an integer.
t->history is an array allocated when the descriptor is created.
--
George Greer, greerga@circlemud.org | Genius may have its limitations, but
http://mouse.van.ml.org/ (not done) | stupidity is not thus handicapped.
http://www.van.ml.org/CircleMUD/ | -- Elbert Hubbard
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST