mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
channels/smartcard: fix some valgrind warnings
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user