Permalink
Browse files

o Move va_list to beginning of function; not sure if that

  is necessary on some platforms.
  • Loading branch information...
1 parent de78ef3 commit dff22d7bf80c9c5f4f18921ea063a6f86ae75cfd @hzeller committed Oct 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 util.cc
View
@@ -44,9 +44,9 @@ void folve::Appendf(std::string *str, const char *format, ...) {
}
std::string folve::StringPrintf(const char *format, ...) {
- std::string result;
va_list ap;
va_start(ap, format);
+ std::string result;
vAppendf(&result, format, ap);
va_end(ap);
return result;

0 comments on commit dff22d7

Please sign in to comment.