]> err.no Git - linux-2.6/commitdiff
[SCTP]: Fix build warning in sctp_sf_do_5_1C_ack().
authorDavid S. Miller <davem@davemloft.net>
Fri, 18 Jan 2008 12:47:58 +0000 (04:47 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:02:48 +0000 (15:02 -0800)
Reported by Andrew Morton.

net/sctp/sm_statefuns.c: In function 'sctp_sf_do_5_1C_ack':
net/sctp/sm_statefuns.c:484: warning: 'error' may be used uninitialized in this function

Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/sm_statefuns.c

index b1267519183b88b08b8d85c8b0e4ccb4520c20e2..6e127573594e8ff0ff9c349a839f22b59a9f77fe 100644 (file)
@@ -481,7 +481,7 @@ sctp_disposition_t sctp_sf_do_5_1C_ack(const struct sctp_endpoint *ep,
        sctp_init_chunk_t *initchunk;
        struct sctp_chunk *err_chunk;
        struct sctp_packet *packet;
-       sctp_error_t error;
+       sctp_error_t error = SCTP_ERROR_NO_ERROR;
 
        if (!sctp_vtag_verify(chunk, asoc))
                return sctp_sf_pdiscard(ep, asoc, type, arg, commands);