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-csi.c | 1 + 1 file changed, 1 insertion(+) (limited to 'driver-csi.c') diff --git a/driver-csi.c b/driver-csi.c index 3803c30..33e7342 100644 --- a/driver-csi.c +++ b/driver-csi.c @@ -412,6 +412,7 @@ static termkey_keysym register_csifunc_full(termkey_csi *csi, termkey_type type, if(number >= csi->ncsifuncs) { struct keyinfo *new_csifuncs = realloc(csi->csifuncs, sizeof(new_csifuncs[0]) * (number + 1)); + // TODO: Handle realloc() failure csi->csifuncs = new_csifuncs; // Fill in the hole -- cgit v1.2.3