plugins REFACTORING stop false positive uninitialized

stop false positive uninitialized in function ly_err_msg_create
diff --git a/src/plugins_types.c b/src/plugins_types.c
index 3e24bb0..a202f3c 100644
--- a/src/plugins_types.c
+++ b/src/plugins_types.c
@@ -53,7 +53,7 @@
 {
     struct ly_err_item *ret;
     char *msg;
-    int  print_ret;
+    int  print_ret = -1;
 
     va_list(print_args);
 
@@ -62,7 +62,7 @@
         print_ret = vasprintf(&msg, err_msg, print_args);
     }
 
-    if ((print_ret < 0) || (err_msg == NULL)) {
+    if (print_ret < 0) {
         ret = ly_err_new(LY_LLERR, LY_EMEM, 0, LY_EMEM_MSG, NULL, NULL);
         *err_code = LY_EMEM;
     } else {