summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/build/mkentprops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/build/mkentprops.c b/src/build/mkentprops.c
index 9c366e5..300dafa 100644
--- a/src/build/mkentprops.c
+++ b/src/build/mkentprops.c
@@ -84,7 +84,7 @@ static void kv_cb(enum kv_token type, const char *p, uint len, void *ctxt) {
case KV_NEST_END: badparse(state, "unexpected closing brace");
case KV_VAL: case KV_VAL_QUOTED:;
struct prop *prop = malloc(sizeof(*prop));
- if (!p) die("couldn't allocate memory");
+ if (!prop) die("couldn't allocate memory");
prop->varname = state->lastvar;
char *classname = malloc(len + 1);
if (!classname) die("couldn't allocate memory");