Fix an unitialized variable warning
[ira/wip.git] / libcli / named_pipe_auth / npa_tstream.c
index 57e841860ce45760fc9e7b331ab48c40e7179cca..fdb55c7e826dedd08ed00d341eb6522fc05b248a 100644 (file)
@@ -458,6 +458,9 @@ static ssize_t tstream_npa_pending_bytes(struct tstream_context *stream)
        case FILE_TYPE_MESSAGE_MODE_PIPE:
                ret = npas->pending.iov_len;
                break;
+
+       default:
+               ret = -1;
        }
 
        return ret;