summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlaranjeiro2008-07-10 07:48:12 +0000
committerlaranjeiro2008-07-10 07:48:12 +0000
commit0ff3172fe8df1cd6a9771dbfe482b4e2a63cb109 (patch)
tree0431ce2a1251820d57b1d7513d08eb57253e9cec
parentd01b67a637a5e2abe37634a18b3c80a6e39fdfd4 (diff)
cl: Fixed the CL to return on the copy function if no table is currently present in the CL.
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@2585 017c9cb6-072f-447c-8318-d5b54f68fe89
-rw-r--r--cesar/cl/src/cl_mactotei.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cesar/cl/src/cl_mactotei.c b/cesar/cl/src/cl_mactotei.c
index 9c2590d0e8..1e76cf8d37 100644
--- a/cesar/cl/src/cl_mactotei.c
+++ b/cesar/cl/src/cl_mactotei.c
@@ -105,8 +105,9 @@ cl_mactotei_copy_tei_and_tag (cl_t *ctx,
uint total;
table_old = ctx->mactotei;
+ if (!table_old)
+ return;
- dbg_assert (table_old);
dbg_assert (table);
for (total = table_old->nb_total, count = 0, curr = table_old->first;