summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Halase <jordan@halase.me>2019-10-28 17:31:15 -0500
committerJordan Halase <jordan@halase.me>2019-10-28 17:31:15 -0500
commit56a010b06547b7d414185dbd2532ce209226078c (patch)
tree6aba6342f9ac5a62755ca2f82cc2e75dc6784f4c
parentdba677e88b302b679582ff50b9c492cce9b501e2 (diff)
Set errMsg to NULL when cleared
-rw-r--r--main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.c b/main.c
index 4af8e19..911e5d7 100644
--- a/main.c
+++ b/main.c
@@ -105,6 +105,7 @@ void clearErrMsg(struct RenderVulkan *vk)
{
if (vk->errMsg) {
free(vk->errMsg);
+ vk->errMsg = NULL;
}
}