Changeset b61ad80


Ignore:
Timestamp:
May 5, 2014, 6:44:00 AM (10 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.10
Children:
18380fd
Parents:
cba6b9c
git-author:
Anders Kaseorg <andersk@mit.edu> (04/23/14 02:44:17)
git-committer:
Anders Kaseorg <andersk@mit.edu> (05/05/14 06:44:00)
Message:
owl_function_debugmsg: Be sure to match va_start with va_end

Found by Coverity Scan service.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    r7dcef03 rb61ad80  
    12271227  time_t now;
    12281228  va_list ap;
    1229   va_start(ap, fmt);
    12301229
    12311230  if (!owl_global_is_debug_fast(&g))
     
    12421241          (int) getpid(), tmpbuff, now - owl_global_get_starttime(&g));
    12431242  g_free(tmpbuff);
     1243
     1244  va_start(ap, fmt);
    12441245  vfprintf(file, fmt, ap);
     1246  va_end(ap);
     1247
    12451248  putc('\n', file);
    12461249  fflush(file);
    1247 
    1248   va_end(ap);
    12491250}
    12501251
Note: See TracChangeset for help on using the changeset viewer.