summaryrefslogtreecommitdiffstats
path: root/tapset/context.stp
diff options
context:
space:
mode:
authorjistone <jistone>2006-05-09 18:40:46 +0000
committerjistone <jistone>2006-05-09 18:40:46 +0000
commit7fc04af4d3eed82dcefe595a5718e1e21178f65a (patch)
treeca4c1bb762889b865a1dbb2dd65536db45facede /tapset/context.stp
parent0323ed4d37fee4f84251a74dce04271160d2d1f1 (diff)
downloadsystemtap-steved-7fc04af4d3eed82dcefe595a5718e1e21178f65a.tar.gz
systemtap-steved-7fc04af4d3eed82dcefe595a5718e1e21178f65a.tar.xz
systemtap-steved-7fc04af4d3eed82dcefe595a5718e1e21178f65a.zip
Reorganize so that the compiler knows that ptr is initialized
Diffstat (limited to 'tapset/context.stp')
-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;