summaryrefslogtreecommitdiffstats
path: root/gatchat/gatppp.c
diff options
context:
space:
mode:
Diffstat (limited to 'gatchat/gatppp.c')
-rw-r--r--gatchat/gatppp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gatchat/gatppp.c b/gatchat/gatppp.c
index 5e875b8a..bbd8ab1a 100644
--- a/gatchat/gatppp.c
+++ b/gatchat/gatppp.c
@@ -78,7 +78,7 @@ struct _GAtPPP {
void ppp_debug(GAtPPP *ppp, const char *str)
{
- if (!ppp || !ppp->debugf)
+ if (ppp == NULL || ppp->debugf == NULL)
return;
ppp->debugf(str, ppp->debug_data);
@@ -490,7 +490,7 @@ static GAtPPP *ppp_init_common(GAtHDLC *hdlc, gboolean is_server, guint32 ip)
GAtPPP *ppp;
ppp = g_try_malloc0(sizeof(GAtPPP));
- if (!ppp)
+ if (ppp == NULL)
return NULL;
ppp->hdlc = g_at_hdlc_ref(hdlc);