summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-09-18 17:33:58 +0200
committerHaru <haru@dotalux.com>2015-09-18 17:33:58 +0200
commit442a306a60d4529f5cae70c0a659b4bc31d2f07b (patch)
tree2f6c73fecfc736be316f43980d495b49dae7917d /src/map/atcommand.c
parent9e2ae37d45a32a5dfcca2fc77ed61703d31dc468 (diff)
downloadhercules-442a306a60d4529f5cae70c0a659b4bc31d2f07b.tar.gz
hercules-442a306a60d4529f5cae70c0a659b4bc31d2f07b.tar.bz2
hercules-442a306a60d4529f5cae70c0a659b4bc31d2f07b.tar.xz
hercules-442a306a60d4529f5cae70c0a659b4bc31d2f07b.zip
Clarified intent in various side-effect assignments
While this doesn't change anything in the way those assignments work, it clarifies that they're intended to be side-effect assignments and not typos (to both human readers and static analyzers) Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index acc9dff9f..f01311235 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -210,7 +210,7 @@ ACMD(send)
// read message type as hex number (without the 0x)
if (!*message
- || !((sscanf(message, "len %x", &type)==1 && (len=1))
+ || !((sscanf(message, "len %x", &type)==1 && (len=1, true))
|| sscanf(message, "%x", &type)==1)
) {
clif->message(fd, msg_fd(fd,900)); // Usage: