Mesa (master): vc4: Add missing null terminator to the debug options list.

Eric Anholt anholt at kemper.freedesktop.org
Tue Sep 9 14:30:30 UTC 2014


Module: Mesa
Branch: master
Commit: 840f38112026e9f71edd3dba7f88e09dec57b960
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=840f38112026e9f71edd3dba7f88e09dec57b960

Author: Eric Anholt <eric at anholt.net>
Date:   Tue Sep  9 07:28:12 2014 -0700

vc4: Add missing null terminator to the debug options list.

So far, apparently there's been some NULL laying at the address just after
the options anyway, but the next commit changed that.

---

 src/gallium/drivers/vc4/vc4_screen.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/vc4/vc4_screen.c b/src/gallium/drivers/vc4/vc4_screen.c
index b0f9710..793f8d3 100644
--- a/src/gallium/drivers/vc4/vc4_screen.c
+++ b/src/gallium/drivers/vc4/vc4_screen.c
@@ -50,6 +50,7 @@ static const struct debug_named_value debug_options[] = {
           "Print during performance-related events" },
         { "norast",   VC4_DEBUG_NORAST,
           "Skip actual hardware execution of commands" },
+        { NULL }
 };
 
 DEBUG_GET_ONCE_FLAGS_OPTION(vc4_debug, "VC4_DEBUG", debug_options, 0)




More information about the mesa-commit mailing list