diff options
author | James Booth <boothj5@gmail.com> | 2015-08-30 01:32:13 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-08-30 01:32:13 +0100 |
commit | b4722632b6fa447386b7d786efc8dafd22a3671c (patch) | |
tree | 6a6d3e243415ef982a13412503890b4e6ae19565 /src/common.c | |
parent | 1484e94b355dc8f41d7285206b114a3e8251a1d9 (diff) | |
download | profani-tty-b4722632b6fa447386b7d786efc8dafd22a3671c.tar.gz |
Split PGP incoming and outgoing message handling
Diffstat (limited to 'src/common.c')
-rw-r--r-- | src/common.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common.c b/src/common.c index fc701b8b..0a314c91 100644 --- a/src/common.c +++ b/src/common.c @@ -195,6 +195,12 @@ str_replace(const char *string, const char *substr, gboolean str_contains_str(const char * const searchstr, const char * const substr) { + if (!searchstr) { + return FALSE; + } + if (!substr) { + return FALSE; + } return g_strrstr(searchstr, substr) != NULL; } |