aboutsummaryrefslogtreecommitdiff
path: root/driver-csi.c
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2008-10-09 23:53:35 +0100
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2008-10-09 23:53:35 +0100
commit37156ad580a07413383d3ca5d95f19ea1bc1f716 (patch)
treea184d83d1c25c9a493ca9ee8fb29e2ca75aa77cd /driver-csi.c
parent2b08f88f19b0270c9db993c940181535c33a71b3 (diff)
downloadtermo-37156ad580a07413383d3ca5d95f19ea1bc1f716.tar.gz
termo-37156ad580a07413383d3ca5d95f19ea1bc1f716.tar.xz
termo-37156ad580a07413383d3ca5d95f19ea1bc1f716.zip
Added some TODO notes about handling realloc() failures
Diffstat (limited to 'driver-csi.c')
-rw-r--r--driver-csi.c1
1 files changed, 1 insertions, 0 deletions
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