summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2014-02-20 15:18:41 +0100
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2014-02-20 15:18:41 +0100
commitbac37baabe92c3f7473b2a91ec76b82271d04206 (patch)
treec8bd9dc0085d64476a843b21a4de5c3ead7d65ed /src
parentbf328a08e5f09ac0ddcd2e728b585301c45de1d3 (diff)
downloadlibrcc-bac37baabe92c3f7473b2a91ec76b82271d04206.tar.gz
librcc-bac37baabe92c3f7473b2a91ec76b82271d04206.tar.bz2
librcc-bac37baabe92c3f7473b2a91ec76b82271d04206.tar.xz
librcc-bac37baabe92c3f7473b2a91ec76b82271d04206.zip
fix typo in allocation checking
Diffstat (limited to 'src')
-rw-r--r--src/librcc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librcc.c b/src/librcc.c
index 28a1657..b11c2ee 100644
--- a/src/librcc.c
+++ b/src/librcc.c
@@ -188,7 +188,7 @@ rcc_context rccCreateContext(const char *locale_variable, unsigned int max_langu
configs = (rcc_language_config)malloc((max_languages)*sizeof(struct rcc_language_config_t));
- if ((!ctx)||(!languages)||(!classes)||(!mutex)||(!from)||(!ilang)||(!iclass)||(!mutex)) {
+ if ((!ctx)||(!languages)||(!classes)||(!from)||(!ilang)||(!iclass)||(!mutex)||(!configs)) {
if (mutex) rccMutexFree(mutex);
if (from) free(from);
if (configs) free(configs);