* build-aux/maint.mk: Add indent target.
[gnulib.git] / lib / gc-gnulib.c
index 61143b0..c0fa2e3 100644 (file)
@@ -192,6 +192,8 @@ gc_cipher_open (Gc_cipher alg, Gc_cipher_mode mode,
   Gc_rc rc = GC_OK;
 
   ctx = calloc (sizeof (*ctx), 1);
+  if (!ctx)
+    return GC_MALLOC_ERROR;
 
   ctx->alg = alg;
   ctx->mode = mode;