* gphoto2-port.c: Do not use va_list twice (does not work on some platforms).
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@7605 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
@@ -838,7 +838,7 @@ gp_port_set_error (GPPort *port, const char *format, ...)
|
||||
va_start (args, format);
|
||||
vsnprintf (port->pc->error, sizeof (port->pc->error),
|
||||
_(format), args);
|
||||
gp_logv (GP_LOG_ERROR, "gphoto2-port", format, args);
|
||||
gp_log (GP_LOG_ERROR, "gphoto2-port", "%s", port->pc->error);
|
||||
va_end (args);
|
||||
} else
|
||||
port->pc->error[0] = '\0';
|
||||
|
||||
Reference in New Issue
Block a user