--- a/example-modules/helloworld/helloworld.c
+++ b/example-modules/helloworld/helloworld.c
@@ -34,6 +34,8 @@
     agt_profile_t *agt_profile;
     status_t res;
 
+    assert(modname);
+
     agt_profile = agt_get_profile();
 
     res = ncxmod_load_module(
