summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-07-29 12:06:20 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-07-29 12:06:20 +0900
commita0ed0483fc856dbafed6f69a3a8496f2cff17d72 (patch)
treea47964c214a64bdd51156e444528911161ed6fe0
parent66f71d2ebc7344bf67c1be8f72d795bb5c352b77 (diff)
evas gl gnenric engine - dont check w and h ptrs - will never be null
analyser unhappiness. found by PVS studio
-rw-r--r--src/modules/evas/engines/gl_generic/evas_engine.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/evas/engines/gl_generic/evas_engine.c b/src/modules/evas/engines/gl_generic/evas_engine.c
index 42bdde5d49..3fe5eb8dfa 100644
--- a/src/modules/evas/engines/gl_generic/evas_engine.c
+++ b/src/modules/evas/engines/gl_generic/evas_engine.c
@@ -582,13 +582,13 @@ eng_image_size_get(void *engine EINA_UNUSED, void *image, int *w, int *h)
582 im->orient == EVAS_IMAGE_FLIP_TRANSPOSE || 582 im->orient == EVAS_IMAGE_FLIP_TRANSPOSE ||
583 im->orient == EVAS_IMAGE_FLIP_TRANSVERSE) 583 im->orient == EVAS_IMAGE_FLIP_TRANSVERSE)
584 { 584 {
585 if (w) *w = im->h; 585 *w = im->h;
586 if (h) *h = im->w; 586 *h = im->w;
587 } 587 }
588 else 588 else
589 { 589 {
590 if (w) *w = im->w; 590 *w = im->w;
591 if (h) *h = im->h; 591 *h = im->h;
592 } 592 }
593} 593}
594 594