* 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:
Marcus Meissner
2005-02-22 06:33:42 +00:00
parent 7aa4d0cc55
commit 276b02c521

View File

@@ -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';