Commit 4a253d2a authored by unknown's avatar unknown

uninitialized variable on Windows fixed

parent 125c41bd
...@@ -192,7 +192,7 @@ vio_should_retry(Vio * vio __attribute__((unused))) ...@@ -192,7 +192,7 @@ vio_should_retry(Vio * vio __attribute__((unused)))
int vio_close(Vio * vio) int vio_close(Vio * vio)
{ {
int r; int r=0;
DBUG_ENTER("vio_close"); DBUG_ENTER("vio_close");
#ifdef __WIN__ #ifdef __WIN__
if (vio->type == VIO_TYPE_NAMEDPIPE) if (vio->type == VIO_TYPE_NAMEDPIPE)
...@@ -206,7 +206,6 @@ int vio_close(Vio * vio) ...@@ -206,7 +206,6 @@ int vio_close(Vio * vio)
else if (vio->type != VIO_CLOSED) else if (vio->type != VIO_CLOSED)
#endif /* __WIN__ */ #endif /* __WIN__ */
{ {
r=0;
if (shutdown(vio->sd,2)) if (shutdown(vio->sd,2))
r= -1; r= -1;
if (closesocket(vio->sd)) if (closesocket(vio->sd))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment