fixed segfault if using without message callback
Stefan Schuermans

Stefan Schuermans commited on 2011-12-14 22:13:17
Showing 1 changed files, with 1 additions and 0 deletions.

... ...
@@ -70,6 +70,7 @@ flp_display_t *flp_display_create(const char *sz_config_file,
70 70
                           p_msg_func, p_msg_ctx)) {
71 71
     flp_display_free(p_display); /* cleanup everything that config file
72 72
                                     processing might heave created already */
73
+    if (p_msg_func)
73 74
       p_msg_func(p_msg_ctx, flp_msg_type_err, "reading config file failed\n");
74 75
     return NULL;
75 76
   }
76 77