diff options
author | Will Storey <will@summercat.com> | 2017-12-02 10:09:52 -0800 |
---|---|---|
committer | Will Storey <will@summercat.com> | 2017-12-02 10:09:52 -0800 |
commit | b0637ad6ea8784d3b2be829ca40f9dddf0c049fc (patch) | |
tree | 4c8399a1acff419c66032b90bbf9f9a7d7427d40 /src/irc/core | |
parent | 1a49787ef25103d1a393c81e35fb949322fe0523 (diff) | |
download | irssi-b0637ad6ea8784d3b2be829ca40f9dddf0c049fc.zip |
Update NULL comparison style and be C89 compatible
Diffstat (limited to 'src/irc/core')
-rw-r--r-- | src/irc/core/irc.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/irc/core/irc.c b/src/irc/core/irc.c index 790c7122..a740b0da 100644 --- a/src/irc/core/irc.c +++ b/src/irc/core/irc.c @@ -287,11 +287,13 @@ char *event_get_params(const char *data, int count, ...) /* Given a string containing <params>, strip any colon prefixing <trailing>. */ static void strip_params_colon(char *const params) { - if (!params) { + char *s; + + if (params == NULL) { return; } - char *s = params; + s = params; while (*s != '\0') { if (*s == ':') { memmove(s, s+1, strlen(s+1)+1); @@ -299,7 +301,7 @@ static void strip_params_colon(char *const params) } s = strchr(s, ' '); - if (!s) { + if (s == NULL) { return; } |