Added some TODO notes about handling realloc() failures

This commit is contained in:
Paul LeoNerd Evans
2008-10-09 23:53:35 +01:00
parent 2b08f88f19
commit 37156ad580
3 changed files with 4 additions and 1 deletions

View File

@@ -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;
}