mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-21 07:10:09 +01:00
utils/u_debug: Fix parse of "all,<something else>
If debug string is something like "all,file=..." the all case would
never be executed, this can be fixed by comparing up to strlen("all").
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26882>
This commit is contained in:
parent
a63f3fbdae
commit
0c42c79edf
1 changed files with 1 additions and 1 deletions
|
|
@ -423,7 +423,7 @@ parse_debug_string(const char *debug,
|
||||||
|
|
||||||
if (debug != NULL) {
|
if (debug != NULL) {
|
||||||
for (; control->string != NULL; control++) {
|
for (; control->string != NULL; control++) {
|
||||||
if (!strcmp(debug, "all")) {
|
if (!strncmp(debug, "all", strlen("all"))) {
|
||||||
flag |= control->flag;
|
flag |= control->flag;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue