apvlv: fix FTBFS

This commit is contained in:
maxice8 2018-07-25 13:03:06 -03:00
parent eb9ccda7f2
commit cfb783c88d

View file

@ -0,0 +1,23 @@
--- src/ApvlvCmds.cc
+++ src/ApvlvCmds.cc
@@ -200,7 +200,7 @@ namespace apvlv
if (len >= 4
&& *s == '<'
- && (e = strchr ((char *) s, '>')) != '\0' && *(s + 2) != '-')
+ && (e = strchr ((char *) s, '>')) && *(s + 2) != '-')
{
e++;
StringKeyMap::iterator it;
--- src/ApvlvCore.cc
+++ src/ApvlvCore.cc
@@ -90,7 +90,7 @@ namespace apvlv
{
mInuse = use;
- if (mInuse == false && gView->hasloaded (filename (), type ()) == false)
+ if (mInuse == false && !gView->hasloaded (filename (), type ()))
{
debug ("core :%p is not needed, delete it\n", this);
delete this;