]> granicus.if.org Git - php/commitdiff
Use EMPTY_SWITCH_DEFAULT_CASE in php_unicode.c
authorNikita Popov <nikita.ppv@gmail.com>
Fri, 12 Apr 2019 08:26:11 +0000 (10:26 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 12 Apr 2019 08:26:11 +0000 (10:26 +0200)
Avoids a potentially uninitialized variable warning.

ext/mbstring/php_unicode.c

index 69fdfc0706c693b8e6aff5710df62ad59615cd61..664f760fc363ce5dd8a15b741036d7c7cafd6948 100644 (file)
@@ -371,9 +371,7 @@ static int convert_case_filter(int c, void *void_data)
                        }
                        break;
                }
-               default:
-                       assert(0);
-                       break;
+               EMPTY_SWITCH_DEFAULT_CASE()
        }
 
        for (i = 0; i < len; i++) {