aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wmem
diff options
context:
space:
mode:
authorchinarulezzz <alexandr.savca89@gmail.com>2018-04-22 21:13:46 +0300
committerAnders Broman <a.broman58@gmail.com>2018-05-03 04:09:42 +0000
commitec0f8e6c36f16ca0f7eeb712f823f857468ff6d9 (patch)
tree0128e3fc77ea7f97c6100bdf242f9eac98491214 /epan/wmem
parent22fc5fb86502cbd42c92948eab542e551b963fd5 (diff)
fix missing parentheses in 'if' statement
Change-Id: I47f8566c4410d6aac1111b35fff3b044c14bc70b Reviewed-on: https://code.wireshark.org/review/27079 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Dario Lombardo <lomato@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/wmem')
-rw-r--r--epan/wmem/wmem_allocator_simple.c2
-rw-r--r--epan/wmem/wmem_map.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/epan/wmem/wmem_allocator_simple.c b/epan/wmem/wmem_allocator_simple.c
index b8d15e77d5..3c254a65ed 100644
--- a/epan/wmem/wmem_allocator_simple.c
+++ b/epan/wmem/wmem_allocator_simple.c
@@ -34,7 +34,7 @@ wmem_simple_alloc(void *private_data, const size_t size)
allocator = (wmem_simple_allocator_t*) private_data;
- if G_UNLIKELY(allocator->count == allocator->size) {
+ if (G_UNLIKELY(allocator->count == allocator->size)) {
allocator->size *= 2;
allocator->ptrs = (void**)wmem_realloc(NULL, allocator->ptrs,
sizeof(void*) * allocator->size);
diff --git a/epan/wmem/wmem_map.c b/epan/wmem/wmem_map.c
index 8164f2b47c..b6064def15 100644
--- a/epan/wmem/wmem_map.c
+++ b/epan/wmem/wmem_map.c
@@ -28,7 +28,7 @@ void
wmem_init_hashing(void)
{
x = g_random_int();
- if G_UNLIKELY(x == 0)
+ if (G_UNLIKELY(x == 0))
x = 1;
preseed = g_random_int();