summaryrefslogtreecommitdiffstats
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
parentbf328a08e5f09ac0ddcd2e728b585301c45de1d3 (diff)
downloadlibrcc-bac37baabe92c3f7473b2a91ec76b82271d04206.tar.gz
librcc-bac37baabe92c3f7473b2a91ec76b82271d04206.tar.bz2
librcc-bac37baabe92c3f7473b2a91ec76b82271d04206.tar.xz
librcc-bac37baabe92c3f7473b2a91ec76b82271d04206.zip
fix typo in allocation checking
-rw-r--r--VERSION2
-rw-r--r--src/librcc.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/VERSION b/VERSION
index a1efefa..ef4f4ff 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.2.11.1
+0.2.13CVS
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);