projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e91b66
)
[jit] Fix mono_debug_count () so it doesn't confuse COUNT=0 with COUNT not being...
author
Zoltan Varga
<vargaz@gmail.com>
Sun, 2 Jul 2017 22:05:18 +0000
(18:05 -0400)
committer
Zoltan Varga
<vargaz@gmail.com>
Sun, 2 Jul 2017 22:05:38 +0000
(18:05 -0400)
mono/mini/mini-runtime.c
patch
|
blob
|
history
diff --git
a/mono/mini/mini-runtime.c
b/mono/mini/mini-runtime.c
index 64528e75c4eede6ff8aec27badb020472dc88502..77c69bb937514fec3a43b0fdfa691a26ca555a97 100644
(file)
--- a/
mono/mini/mini-runtime.c
+++ b/
mono/mini/mini-runtime.c
@@
-574,7
+574,7
@@
G_GNUC_UNUSED gboolean
mono_debug_count (void)
{
static int count = 0, int_val = 0;
- static gboolean inited;
+ static gboolean inited
, has_value = FALSE
;
count ++;
@@
-583,11
+583,12
@@
mono_debug_count (void)
if (value) {
int_val = atoi (value);
g_free (value);
+ has_value = TRUE;
}
inited = TRUE;
}
- if (!
int_val
)
+ if (!
has_value
)
return TRUE;
if (count == int_val)