From 98f46f9e17bb42ee072252ccc8b6017035295776 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 6 Aug 2015 02:35:49 +0200 Subject: [PATCH] (runloop_data.c) Cleanups --- runloop_data.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/runloop_data.c b/runloop_data.c index 84072b269c..7598999c5c 100644 --- a/runloop_data.c +++ b/runloop_data.c @@ -320,7 +320,7 @@ void rarch_main_data_msg_queue_push(unsigned type, const char *msg, const char *msg2, unsigned prio, unsigned duration, bool flush) { - char new_msg[PATH_MAX_LENGTH] = {0}; + char new_msg[PATH_MAX_LENGTH]; msg_queue_t *queue = NULL; switch(type) @@ -329,14 +329,10 @@ void rarch_main_data_msg_queue_push(unsigned type, break; case DATA_TYPE_FILE: queue = rarch_main_data_nbio_get_msg_queue_ptr(); - if (!queue) - return; snprintf(new_msg, sizeof(new_msg), "%s|%s", msg, msg2); break; case DATA_TYPE_IMAGE: queue = rarch_main_data_nbio_image_get_msg_queue_ptr(); - if (!queue) - return; snprintf(new_msg, sizeof(new_msg), "%s|%s", msg, msg2); break; #ifdef HAVE_NETWORKING