summaryrefslogtreecommitdiff
path: root/src/map/itemdb.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-08-12 01:34:41 +0200
committerHaru <haru@dotalux.com>2015-08-12 01:34:41 +0200
commitbe8b2eaed13475ae043daa81882e490e78396562 (patch)
tree9c4b888f47d05740d744b2a0ce79333711292b9b /src/map/itemdb.c
parentf9cc60831717b91b5ab72c03283ce23f6bfd5317 (diff)
downloadhercules-be8b2eaed13475ae043daa81882e490e78396562.tar.gz
hercules-be8b2eaed13475ae043daa81882e490e78396562.tar.bz2
hercules-be8b2eaed13475ae043daa81882e490e78396562.tar.xz
hercules-be8b2eaed13475ae043daa81882e490e78396562.zip
Fixed some issues reported by Coverity
Follow-up to 5090bdf750017f0d631401edd563c452bd10ec24, 84e02ac28fbb15c58d0a0f8a916b49663198b05b Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/itemdb.c')
-rw-r--r--src/map/itemdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c
index 7de99cf7e..644c16a00 100644
--- a/src/map/itemdb.c
+++ b/src/map/itemdb.c
@@ -75,7 +75,7 @@ struct item_data* itemdb_searchname(const char *str) {
return item;
//Second priority to Client displayed name.
- if( item2 != 0 && strcasecmp(item->jname,str) == 0 )
+ if (!item2 && strcasecmp(item->jname,str) == 0)
item2 = item;
}