From e8ceb45c053fbcc326b82c2f360c1175c44d7d20 Mon Sep 17 00:00:00 2001 From: jistone Date: Tue, 9 May 2006 20:52:53 +0000 Subject: 2006-05-09 Josh Stone * context.stp (probefunc): define our own exit label --- tapset/context.stp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tapset/context.stp') diff --git a/tapset/context.stp b/tapset/context.stp index bea07d81..a97d6f13 100644 --- a/tapset/context.stp +++ b/tapset/context.stp @@ -104,7 +104,7 @@ function probefunc:string () %{ /* pure */ while (*ptr != '@' && --len > 0 && *ptr) *dst++ = *ptr++; *dst = 0; - goto out; + goto done; } if (CONTEXT->regs) { str = _stp_string_init (0); @@ -120,9 +120,10 @@ function probefunc:string () %{ /* pure */ else { strlcpy(THIS->__retvalue, _stp_string_ptr(str),MAXSTRINGLEN); } - goto out; + goto done; } THIS->__retvalue[0] = '\0'; +done: ; %} function is_return:long () %{ /* pure */ -- cgit