blob: c7468fe17fd659c04818902e425844acc7f6e5af [file] [log] [blame]
Patrick Williams92b42cb2022-09-03 06:53:57 -05001From 58cfb4f86b7fbf19eb643dfba87fdd890b3d4a4a Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 24 Aug 2022 19:27:31 -0700
4Subject: [PATCH] ssmtp: Correct the null pointer assignment to char pointers
5
6Fixes
7error: incompatible integer to pointer conversion initializing 'char *' with an expression of type 'char' [-Wint-conversion]
8| char *from = (char)NULL; /* Use this as the From: address */
9
10Upstream-Status: Pending
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 ssmtp.c | 20 ++++++++++----------
14 1 file changed, 10 insertions(+), 10 deletions(-)
15
16diff --git a/ssmtp.c b/ssmtp.c
17index a74ba4e..0a719ac 100644
18--- a/ssmtp.c
19+++ b/ssmtp.c
20@@ -55,21 +55,21 @@ bool_t use_oldauth = False; /* use old AUTH LOGIN username style */
21
22 #define ARPADATE_LENGTH 32 /* Current date in RFC format */
23 char arpadate[ARPADATE_LENGTH];
24-char *auth_user = (char)NULL;
25-char *auth_pass = (char)NULL;
26-char *auth_method = (char)NULL; /* Mechanism for SMTP authentication */
27-char *mail_domain = (char)NULL;
28-char *from = (char)NULL; /* Use this as the From: address */
29+char *auth_user = NULL;
30+char *auth_pass = NULL;
31+char *auth_method = NULL; /* Mechanism for SMTP authentication */
32+char *mail_domain = NULL;
33+char *from = NULL; /* Use this as the From: address */
34 char *hostname;
35 char *mailhost = "mailhub";
36-char *minus_f = (char)NULL;
37-char *minus_F = (char)NULL;
38+char *minus_f = NULL;
39+char *minus_F = NULL;
40 char *gecos;
41-char *prog = (char)NULL;
42+char *prog = NULL;
43 char *root = NULL;
44 char *tls_cert = "/etc/ssl/certs/ssmtp.pem"; /* Default Certificate */
45-char *uad = (char)NULL;
46-char *config_file = (char)NULL; /* alternate configuration file */
47+char *uad = NULL;
48+char *config_file = NULL; /* alternate configuration file */
49
50 headers_t headers, *ht;
51