summaryrefslogtreecommitdiff
path: root/src/attacher.c
diff options
context:
space:
mode:
authorAmadeusz Sławiński <amade@asmblr.net>2018-04-05 10:49:55 +0200
committerAmadeusz Sławiński <amade@asmblr.net>2018-04-06 00:18:33 +0200
commit81a2699fdd5eb0b2c2d8c5e22db6c2fb8241cf20 (patch)
tree1fd5046b2c68120ea069b9f6a05fed9ef69861c1 /src/attacher.c
parent9b5a5ed22808c51359f3e8959edb133c521a850a (diff)
downloadscreen-81a2699fdd5eb0b2c2d8c5e22db6c2fb8241cf20.tar.gz
use NULL instead of 0 where applicable
found with sparse warning: Using plain integer as NULL pointer
Diffstat (limited to 'src/attacher.c')
-rw-r--r--src/attacher.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/attacher.c b/src/attacher.c
index c6a54b8..421f78a 100644
--- a/src/attacher.c
+++ b/src/attacher.c
@@ -433,7 +433,7 @@ void SendCmdMessage(char *sty, char *match, char **av, int query)
char *p;
int n;
- if (sty == 0) {
+ if (sty == NULL) {
i = FindSocket(&s, (int *)0, (int *)0, match);
if (i == 0)
Panic(0, "No screen session found.");