From 7fc04af4d3eed82dcefe595a5718e1e21178f65a Mon Sep 17 00:00:00 2001 From: jistone Date: Tue, 9 May 2006 18:40:46 +0000 Subject: Reorganize so that the compiler knows that ptr is initialized --- tapset/context.stp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'tapset/context.stp') diff --git a/tapset/context.stp b/tapset/context.stp index c17aa27a..bea07d81 100644 --- a/tapset/context.stp +++ b/tapset/context.stp @@ -94,13 +94,10 @@ function probefunc:string () %{ /* pure */ int len = MAXSTRINGLEN; start = strstr(CONTEXT->probe_point, "function(\""); - if (start) { - ptr = start + 10; - } else { + ptr = start + 10; + if (!start) { start = strstr(CONTEXT->probe_point, "inline(\""); - if (start) { - ptr = start + 8; - } + ptr = start + 8; } if (start) { dst = THIS->__retvalue; -- cgit