projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* build-aux/maint.mk: Add indent target.
[gnulib.git]
/
lib
/
gc-gnulib.c
diff --git
a/lib/gc-gnulib.c
b/lib/gc-gnulib.c
index
61143b0
..
c0fa2e3
100644
(file)
--- a/
lib/gc-gnulib.c
+++ b/
lib/gc-gnulib.c
@@
-192,6
+192,8
@@
gc_cipher_open (Gc_cipher alg, Gc_cipher_mode mode,
Gc_rc rc = GC_OK;
ctx = calloc (sizeof (*ctx), 1);
Gc_rc rc = GC_OK;
ctx = calloc (sizeof (*ctx), 1);
+ if (!ctx)
+ return GC_MALLOC_ERROR;
ctx->alg = alg;
ctx->mode = mode;
ctx->alg = alg;
ctx->mode = mode;