]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Brace block in parsetok.c
authorGuido van Rossum <guido@python.org>
Wed, 30 Jan 2019 16:23:52 +0000 (08:23 -0800)
committerGuido van Rossum <guido@python.org>
Wed, 30 Jan 2019 17:18:20 +0000 (09:18 -0800)
Parser/parsetok.c

index 6fcf91570176fb25cb561f789a8826d286882a7b..7fddc5a0e8975e86bcbf3bee84e70a05490f8ec9 100644 (file)
@@ -36,8 +36,9 @@ growable_int_array_add(growable_int_array *arr, int item) {
     if (arr->num_items >= arr->size) {
         arr->size *= 2;
         arr->items = realloc(arr->items, arr->size * sizeof(*arr->items));
-        if (!arr->items)
+        if (!arr->items) {
             return 0;
+        }
     }
 
     arr->items[arr->num_items] = item;