diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2014-04-10 01:41:32 +0300 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2014-04-10 01:41:32 +0300 |
commit | 4d920ad9e4aa344c1600e7419f75f6adb647b1b0 (patch) | |
tree | 738e09ff7011b5692cd51730523ad988ca4068b8 /lib/item.c | |
parent | cff1f37f970adafce1ac3a982ea1d338e609cfed (diff) | |
download | bemenu-4d920ad9e4aa344c1600e7419f75f6adb647b1b0.tar.gz bemenu-4d920ad9e4aa344c1600e7419f75f6adb647b1b0.tar.bz2 bemenu-4d920ad9e4aa344c1600e7419f75f6adb647b1b0.zip |
Make asserts and ifs more consistent.
Diffstat (limited to 'lib/item.c')
-rw-r--r-- | lib/item.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -31,7 +31,7 @@ bmItem* bmItemNew(const char *text) */ void bmItemFree(bmItem *item) { - assert(item != NULL); + assert(item); if (item->text) free(item->text); @@ -47,7 +47,7 @@ void bmItemFree(bmItem *item) */ int bmItemSetText(bmItem *item, const char *text) { - assert(item != NULL); + assert(item); char *copy = NULL; if (text && !(copy = _bmStrdup(text))) @@ -68,7 +68,7 @@ int bmItemSetText(bmItem *item, const char *text) */ const char* bmItemGetText(const bmItem *item) { - assert(item != NULL); + assert(item); return item->text; } |