From 37156ad580a07413383d3ca5d95f19ea1bc1f716 Mon Sep 17 00:00:00 2001 From: Paul LeoNerd Evans Date: Thu, 9 Oct 2008 23:53:35 +0100 Subject: Added some TODO notes about handling realloc() failures --- driver-ti.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'driver-ti.c') diff --git a/driver-ti.c b/driver-ti.c index 00090bd..9b67c4f 100644 --- a/driver-ti.c +++ b/driver-ti.c @@ -180,7 +180,7 @@ static void register_seq(termkey_ti *ti, const char *seq, termkey_type type, ter if(ti->nseqs == ti->alloced_seqs) { ti->alloced_seqs *= 2; void *newseqs = realloc(ti->seqs, ti->alloced_seqs * sizeof(ti->seqs[9])); - // TODO: Error handle + // TODO: Handle realloc() failure ti->seqs = newseqs; } -- cgit v1.2.3-54-g00ecf