trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jpe...@apache.org
Subject trafficserver git commit: TS-4013: debug coredump in diagnostics
Date Wed, 11 Nov 2015 05:07:10 GMT
Repository: trafficserver
Updated Branches:
  refs/heads/master 0d8f08334 -> 4cdc43881


TS-4013: debug coredump in diagnostics


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/4cdc4388
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/4cdc4388
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/4cdc4388

Branch: refs/heads/master
Commit: 4cdc43881557705c344b236aa4e3b82a20b813be
Parents: 0d8f083
Author: James Peach <jpeach@apache.org>
Authored: Tue Nov 10 21:06:20 2015 -0800
Committer: James Peach <jpeach@apache.org>
Committed: Tue Nov 10 21:06:53 2015 -0800

----------------------------------------------------------------------
 lib/ts/Diags.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/4cdc4388/lib/ts/Diags.cc
----------------------------------------------------------------------
diff --git a/lib/ts/Diags.cc b/lib/ts/Diags.cc
index 0bd47ea..a43398b 100644
--- a/lib/ts/Diags.cc
+++ b/lib/ts/Diags.cc
@@ -54,9 +54,9 @@ template <int Size>
 static void
 vprintline(FILE *fp, char(&buffer)[Size], va_list ap)
 {
-  int nbytes;
+  int nbytes = strlen(buffer);
 
-  nbytes = vfprintf(fp, buffer, ap);
+  vfprintf(fp, buffer, ap);
   if (nbytes > 0 && buffer[nbytes - 1] != '\n') {
     ink_assert(nbytes < Size);
     putc('\n', fp);


Mime
View raw message