channels/smartcard: fix some valgrind warnings
This commit is contained in:
parent
3b1cefd4b2
commit
39f04c870e
@ -152,7 +152,7 @@ size_t smartcard_multi_string_length_a(const char* msz)
|
||||
if (!p)
|
||||
return 0;
|
||||
|
||||
while (p[0] || p[1])
|
||||
while ((p[0] != 0) && (p[1] != 0))
|
||||
p++;
|
||||
|
||||
return (p - msz);
|
||||
@ -165,7 +165,7 @@ size_t smartcard_multi_string_length_w(const WCHAR* msz)
|
||||
if (!p)
|
||||
return 0;
|
||||
|
||||
while (p[0] || p[1])
|
||||
while ((p[0] != 0) && (p[1] != 0))
|
||||
p++;
|
||||
|
||||
return (p - msz);
|
||||
|
@ -1087,6 +1087,7 @@ void mcs_free(rdpMcs* mcs)
|
||||
{
|
||||
if (mcs)
|
||||
{
|
||||
free(mcs->channels);
|
||||
free(mcs);
|
||||
}
|
||||
}
|
||||
|
@ -64,7 +64,7 @@ size_t PCSC_MultiStringLengthA(const char* msz)
|
||||
if (!p)
|
||||
return 0;
|
||||
|
||||
while (p[0] || p[1])
|
||||
while ((p[0] != 0) && (p[1] != 0))
|
||||
p++;
|
||||
|
||||
return (p - msz);
|
||||
@ -77,7 +77,7 @@ size_t PCSC_MultiStringLengthW(const WCHAR* msz)
|
||||
if (!p)
|
||||
return 0;
|
||||
|
||||
while (p[0] || p[1])
|
||||
while ((p[0] != 0) && (p[1] != 0))
|
||||
p++;
|
||||
|
||||
return (p - msz);
|
||||
|
Loading…
Reference in New Issue
Block a user