summaryrefslogtreecommitdiffstats
path: root/src/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c
index f3eeae1..f8ff05e 100644
--- a/src/util.c
+++ b/src/util.c
@@ -95,7 +95,7 @@ char *nm_strdup(const char *s) {
void nm_error(enum nm_error en, const char* exp) {
nm_errno = en | (exp ? NM_ERROR_EXPLANATION : 0);
if (nm_explanation)
- nm_free(nm_explanation);
+ nm_free((void*) nm_explanation);
nm_explanation = nm_strdup(exp);
}