projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Protect precious strlens, as pointed out by John Goerzen
[citadel.git]
/
citadel
/
modules
/
instmsg
/
serv_instmsg.c
diff --git
a/citadel/modules/instmsg/serv_instmsg.c
b/citadel/modules/instmsg/serv_instmsg.c
index 9884785373f4701758aabdef6031e2f6b2103b77..b150a9167dcdbb701288d0153ec18a04dfb2e6f4 100644
(file)
--- a/
citadel/modules/instmsg/serv_instmsg.c
+++ b/
citadel/modules/instmsg/serv_instmsg.c
@@
-243,7
+243,7
@@
int send_instant_message(char *lun, char *lem, char *x_user, char *x_msg)
int do_send = 0; /* 1 = send message; 0 = only check for valid recipient */
static int serial_number = 0; /* this keeps messages from getting logged twice */
- if (
strlen(x_msg) > 0
) {
+ if (
!IsEmptyStr(x_msg)
) {
do_send = 1;
}