diff --git a/tools/ristreceiver.c b/tools/ristreceiver.c
index 93aedd881746a43107000d0a328c6f463c5b69e0..e807ac3a2fcaff2ffc9ee54dedda66767f79ffea 100644
--- a/tools/ristreceiver.c
+++ b/tools/ristreceiver.c
@@ -802,7 +802,7 @@ int main(int argc, char *argv[])
 #ifdef USE_TUN
 		if (strcmp(udp_config->prefix, "tun") == 0) {
 			if (!callback_object.tun) {
-				rist_log(%logging_settings, RIST_LOG_ERROR, "Detected 'tun://' usage in output url but '--tun' argument was not given\n");
+				rist_log(&logging_settings, RIST_LOG_ERROR, "Detected 'tun://' usage in output url but '--tun' argument was not given\n");
 				exit(1);
 			}
 			atleast_one_socket_opened = true;