summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikhail Lappo2017-06-14 18:08:04 -0500
committerandroid-build-merger2017-06-14 18:08:04 -0500
commit34b7617cb77e9c63b335cb93bcfe644f178d4481 (patch)
treea3ff516401c91f7520a7c0d0c93b773f50f7b962 /libutils/Printer.cpp
parent9244a6b573731c2052bb0a80a65e24f0a4f06091 (diff)
parent5f4808382e46e996b2f1784e728b8675f62bf83f (diff)
downloadplatform-system-core-34b7617cb77e9c63b335cb93bcfe644f178d4481.tar.gz
platform-system-core-34b7617cb77e9c63b335cb93bcfe644f178d4481.tar.xz
platform-system-core-34b7617cb77e9c63b335cb93bcfe644f178d4481.zip
Merge "Va_end should be used with va_start"
am: 5f4808382e Change-Id: Ie79756bdc9a34b4d5b90057a74a0f6bd0007b655
Diffstat (limited to 'libutils/Printer.cpp')
-rw-r--r--libutils/Printer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libutils/Printer.cpp b/libutils/Printer.cpp
index 98cd2c66a..84af2930b 100644
--- a/libutils/Printer.cpp
+++ b/libutils/Printer.cpp
@@ -47,9 +47,11 @@ void Printer::printFormatLine(const char* format, ...) {
47#ifndef _WIN32 47#ifndef _WIN32
48 if (vasprintf(&formattedString, format, arglist) < 0) { // returns -1 on error 48 if (vasprintf(&formattedString, format, arglist) < 0) { // returns -1 on error
49 ALOGE("%s: Failed to format string", __FUNCTION__); 49 ALOGE("%s: Failed to format string", __FUNCTION__);
50 va_end(arglist);
50 return; 51 return;
51 } 52 }
52#else 53#else
54 va_end(arglist);
53 return; 55 return;
54#endif 56#endif
55 57