From cc260fc9aa183090130e831ac592afc1ecca0070 Mon Sep 17 00:00:00 2001 From: Ward Fisher Date: Mon, 23 Feb 2015 13:25:35 -0700 Subject: [PATCH] Fixed a minor static-analysis reported warning. --- oc2/ocrc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oc2/ocrc.c b/oc2/ocrc.c index cf8b46bdb..f387f0f0a 100644 --- a/oc2/ocrc.c +++ b/oc2/ocrc.c @@ -123,7 +123,7 @@ static void rctrim(char* text) { char* p = text; - size_t len = strlen(text); + size_t len = 0; int i; /* locate first non-trimchar */ for(;*p;p++) {