Evas GL: Return safe empty string "" instead of NULL
authorJean-Philippe Andre <jp.andre@samsung.com>
Wed, 3 Sep 2014 07:25:42 +0000 (16:25 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Mon, 20 Oct 2014 03:16:07 +0000 (12:16 +0900)
This is so dumb.

src/lib/evas/canvas/evas_gl.c

index 7984b03..5e8fac2 100644 (file)
@@ -445,7 +445,7 @@ EAPI const char *
 evas_gl_string_query(Evas_GL *evas_gl, int name)
 {
    MAGIC_CHECK(evas_gl, Evas_GL, MAGIC_EVAS_GL);
-   return NULL;
+   return "";
    MAGIC_CHECK_END();
 
    return (const char *)evas_gl->evas->engine.func->gl_string_query(evas_gl->evas->engine.data.output, name);