summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tapset/context.stp9
1 files changed, 3 insertions, 6 deletions
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;