diff options
author | jistone <jistone> | 2006-05-09 18:40:46 +0000 |
---|---|---|
committer | jistone <jistone> | 2006-05-09 18:40:46 +0000 |
commit | 7fc04af4d3eed82dcefe595a5718e1e21178f65a (patch) | |
tree | ca4c1bb762889b865a1dbb2dd65536db45facede /tapset/context.stp | |
parent | 0323ed4d37fee4f84251a74dce04271160d2d1f1 (diff) | |
download | systemtap-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.stp | 9 |
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; |