summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2009-06-22 14:24:42 -0700
committerJosh Stone <jistone@redhat.com>2009-06-22 14:24:57 -0700
commitac72d42e6de0b96fa3e7f9245b50288ad399e4b5 (patch)
tree7c579bb6532112f8930637de4a604403c4d86b00
parent6eec708abee9188d74602f2602925edd2daa6342 (diff)
downloadsystemtap-steved-ac72d42e6de0b96fa3e7f9245b50288ad399e4b5.tar.gz
systemtap-steved-ac72d42e6de0b96fa3e7f9245b50288ad399e4b5.tar.xz
systemtap-steved-ac72d42e6de0b96fa3e7f9245b50288ad399e4b5.zip
Remove unused strlens from str_replace
-rw-r--r--tapset/string.stp2
1 files changed, 0 insertions, 2 deletions
diff --git a/tapset/string.stp b/tapset/string.stp
index e4a5fd39..4b0a2a0d 100644
--- a/tapset/string.stp
+++ b/tapset/string.stp
@@ -109,9 +109,7 @@ function str_replace:string (prnt_str:string, srch_str:string, rplc_str:string)
%{
char *ptr = THIS->prnt_str;
char *ptr_base = THIS->prnt_str;
- int strlen_prnt_str = strlen(THIS->prnt_str);
int strlen_srch_str = strlen(THIS->srch_str);
- int strlen_rplc_str = strlen(THIS->rplc_str);
if(strlen_srch_str == 0) {
strlcat(THIS->__retvalue, ptr_base, MAXSTRINGLEN);