aboutsummaryrefslogtreecommitdiffstats
path: root/src/system.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/system.c')
-rw-r--r--src/system.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/system.c b/src/system.c
index 61635591..cb6ceb6d 100644
--- a/src/system.c
+++ b/src/system.c
@@ -25,6 +25,7 @@
# include <windows.h>
#endif
+#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -92,6 +93,8 @@ serd_free_aligned(void* const ptr)
char*
serd_canonical_path(const char* const path)
{
+ assert(path);
+
#ifdef _WIN32
const DWORD size = GetFullPathName(path, 0, NULL, NULL);
if (size == 0) {