From: Yang Tse Date: Tue, 13 Dec 2011 14:58:02 +0000 (+0100) Subject: pop3.c: fix compiler warning variable may be used uninitialized X-Git-Tag: curl-7_24_0~137 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b9b772fefe5f9e3ab90640f4536ab4c172658407;p=thirdparty%2Fcurl.git pop3.c: fix compiler warning variable may be used uninitialized --- diff --git a/lib/pop3.c b/lib/pop3.c index 2252c57f86..6796cf76f3 100644 --- a/lib/pop3.c +++ b/lib/pop3.c @@ -1036,7 +1036,7 @@ CURLcode Curl_pop3_write(struct connectdata *conn, size_t nread) { /* This code could be made into a special function in the handler struct. */ - CURLcode result; + CURLcode result = CURLE_OK; struct SessionHandle *data = conn->data; struct SingleRequest *k = &data->req; diff --git a/lib/pop3.h b/lib/pop3.h index e9bbd91953..5723fba018 100644 --- a/lib/pop3.h +++ b/lib/pop3.h @@ -1,5 +1,5 @@ -#ifndef __POP3_H -#define __POP3_H +#ifndef HEADER_CURL_POP3_H +#define HEADER_CURL_POP3_H /*************************************************************************** * _ _ ____ _ * Project ___| | | | _ \| | @@ -61,4 +61,4 @@ CURLcode Curl_pop3_write(struct connectdata *conn, char *str, size_t nread); -#endif /* __POP3_H */ +#endif /* HEADER_CURL_POP3_H */