diff options
author | Ilya Shipitsin <chipitsine@gmail.com> | 2016-04-29 21:50:58 +0300 |
---|---|---|
committer | Ilya Shipitsin <chipitsine@gmail.com> | 2016-04-29 21:50:58 +0300 |
commit | 2f52dac9c48cc94b95314dc7db27de1083d7a479 (patch) | |
tree | feedd9c79516eab63dff51b9c2ddb9d93ee20ebf | |
parent | 1e17c9bcfd7e7b31756aa5389bcbff76c2c9c88a (diff) |
cppcheck issues:
[src/Cedar/Admin.c:11843] -> [src/Cedar/Admin.c:11845]: (warning) Either the condition 't==0' is redundant or there is possible null pointer dereference: t.
[src/Cedar/Admin.c:12316] -> [src/Cedar/Admin.c:12318]: (warning) Either the condition 'a==0' is redundant or there is possible null pointer dereference: a.
[src/Cedar/Admin.c:12576] -> [src/Cedar/Admin.c:12578]: (warning) Either the condition 't==0' is redundant or there is possible null pointer dereference: t.
[src/Cedar/Admin.c:12790] -> [src/Cedar/Admin.c:12792]: (warning) Either the condition 't==0' is redundant or there is possible null pointer dereference: t.
-rw-r--r-- | src/Cedar/Admin.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Cedar/Admin.c b/src/Cedar/Admin.c index 5e2ea80a..4dfe3ac1 100644 --- a/src/Cedar/Admin.c +++ b/src/Cedar/Admin.c @@ -11840,12 +11840,12 @@ void InRpcHubEnumCa(RPC_HUB_ENUM_CA *t, PACK *p) void OutRpcHubEnumCa(PACK *p, RPC_HUB_ENUM_CA *t)
{
UINT i;
- PackAddStr(p, "HubName", t->HubName);
// Validate arguments
if (t == NULL || p == NULL)
{
return;
}
+ PackAddStr(p, "HubName", t->HubName);
for (i = 0;i < t->NumCa;i++)
{
@@ -12313,12 +12313,12 @@ void InRpcEnumAccessList(RPC_ENUM_ACCESS_LIST *a, PACK *p) void OutRpcEnumAccessList(PACK *p, RPC_ENUM_ACCESS_LIST *a)
{
UINT i;
- PackAddStr(p, "HubName", a->HubName);
// Validate arguments
if (a == NULL || p == NULL)
{
return;
}
+ PackAddStr(p, "HubName", a->HubName);
for (i = 0;i < a->NumAccess;i++)
{
@@ -12573,12 +12573,12 @@ void InRpcEnumUser(RPC_ENUM_USER *t, PACK *p) void OutRpcEnumUser(PACK *p, RPC_ENUM_USER *t)
{
UINT i;
- PackAddStr(p, "HubName", t->HubName);
// Validate arguments
if (t == NULL || p == NULL)
{
return;
}
+ PackAddStr(p, "HubName", t->HubName);
for (i = 0;i < t->NumUser;i++)
{
@@ -12787,12 +12787,12 @@ void InRpcEnumSession(RPC_ENUM_SESSION *t, PACK *p) void OutRpcEnumSession(PACK *p, RPC_ENUM_SESSION *t)
{
UINT i;
- PackAddStr(p, "HubName", t->HubName);
// Validate arguments
if (t == NULL || p == NULL)
{
return;
}
+ PackAddStr(p, "HubName", t->HubName);
for (i = 0;i < t->NumSession;i++)
{
|