summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_outputs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_outputs.c b/src/lib/ecore_drm2/ecore_drm2_outputs.c
index a30d04e0b7..e760c02d74 100644
--- a/src/lib/ecore_drm2/ecore_drm2_outputs.c
+++ b/src/lib/ecore_drm2/ecore_drm2_outputs.c
@@ -306,6 +306,10 @@ _output_mode_add(Ecore_Drm2_Output *output, const drmModeModeInfo *info)
306 Ecore_Drm2_Output_Mode *mode; 306 Ecore_Drm2_Output_Mode *mode;
307 uint64_t refresh; 307 uint64_t refresh;
308 308
309 EINA_SAFETY_ON_NULL_RETURN_VAL(info, NULL);
310 EINA_SAFETY_ON_FALSE_RETURN_VAL((info->htotal > 0), NULL);
311 EINA_SAFETY_ON_FALSE_RETURN_VAL((info->vtotal > 0), NULL);
312
309 mode = calloc(1, sizeof(Ecore_Drm2_Output_Mode)); 313 mode = calloc(1, sizeof(Ecore_Drm2_Output_Mode));
310 if (!mode) return NULL; 314 if (!mode) return NULL;
311 315