[Pkg-wmaker-commits] [wmbiff] 09/92: wmbiff: comparison between pointer and integer.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Thu Aug 20 02:59:19 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmbiff.

commit 304dbacdde710b439c81fe83b5f23dd9c21c84c8
Author: Gabriel VLASIU <gabriel at imhotep.timteh.com>
Date:   Wed Apr 3 18:40:04 2013 +0300

    wmbiff: comparison between pointer and integer.
---
 wmbiff/Pop3Client.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/wmbiff/Pop3Client.c b/wmbiff/Pop3Client.c
index 2cd350f..0f642cb 100644
--- a/wmbiff/Pop3Client.c
+++ b/wmbiff/Pop3Client.c
@@ -408,7 +408,7 @@ static struct connection_state *authenticate_plaintext( /*@notnull@ */ Pop3 pc,
 	char buf[BUF_SIZE];
 
 	tlscomm_printf(scs, "USER %s\r\n", PCU.userName);
-	if (tlscomm_gets(buf, BUF_SIZE, scs) == NULL) {
+	if (tlscomm_gets(buf, BUF_SIZE, scs) == 0) {
 		POP_DM(pc, DEBUG_ERROR,
 			   "Error reading from server authenticating '%s@%s:%d'\n",
 			   PCU.userName, PCU.serverName, PCU.serverPort);
@@ -426,7 +426,7 @@ static struct connection_state *authenticate_plaintext( /*@notnull@ */ Pop3 pc,
 
 
 	tlscomm_printf(scs, "PASS %s\r\n", PCU.password);
-	if (tlscomm_gets(buf, BUF_SIZE, scs) == NULL) {
+	if (tlscomm_gets(buf, BUF_SIZE, scs) == 0) {
 		POP_DM(pc, DEBUG_ERROR,
 			   "Error reading from server (2) authenticating '%s@%s:%d'\n",
 			   PCU.userName, PCU.serverName, PCU.serverPort);
@@ -437,7 +437,7 @@ static struct connection_state *authenticate_plaintext( /*@notnull@ */ Pop3 pc,
         PCU.password[0] = '\0';
         ask_user_for_password(pc, 1);	/* 1=overwrite the cache */
         tlscomm_printf(scs, "PASS %s\r\n", PCU.password);
-        if (tlscomm_gets(buf, BUF_SIZE, scs) == NULL) {
+        if (tlscomm_gets(buf, BUF_SIZE, scs) == 0) {
           POP_DM(pc, DEBUG_ERROR,
                  "Error reading from server (2) authenticating '%s@%s:%d'\n",
                  PCU.userName, PCU.serverName, PCU.serverPort);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmbiff.git



More information about the Pkg-wmaker-commits mailing list