Original Description:
| Fix dereference after null check reported by Coverity.
|
| Remove a superfluous NULL pointer test that causes Coverity
| to report a dereference after null check.
|
| QA Notes:
| Testing Done:
| - Sandboxes:
| -- obj: Build
36442558 queued (vgauth-sdk/main):
| https://buildweb.eng.vmware.com/sb/
36442558/
| -- obj: Build
36442647 queued (tools/main):
| https://buildweb.eng.vmware.com/sb/
36442647/
| Documentation Notes:
| Bug Number:
2571476
| Reviewed by: jwolfe, lemke, stanguturi
| Approved by:
| Mailto:
| Review URL: https://reviewboard.eng.vmware.com/r/
1668542/
| SVS Submit Restricted: Yes
| Post Submit Tests:
/*********************************************************
- * Copyright (C) 2011-2016 VMware, Inc. All rights reserved.
+ * Copyright (C) 2011-2016,2020 VMware, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
groupNames[i],
&numKeys,
&gErr);
- if ((NULL == keyNames) && (NULL != gErr)) {
+ if (NULL != gErr) {
g_warning("%s: g_key_file_get_keys(%s) failed: %s\n",
__FUNCTION__, groupNames[i], gErr->message);
g_error_free(gErr);