Skip to content
Snippets Groups Projects
Commit 934f229b authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

cdiInqKeyLen: replace || by && (bug fix)

parent 25a1d83d
No related branches found
No related tags found
1 merge request!34Version 2.2.0
Pipeline #23233 failed
......@@ -192,7 +192,7 @@ cdiInqKeyLen(int cdiID, int varID, int key, int *length)
xassert(keysp != NULL);
const cdi_key_t *keyp = find_key_const(keysp, key);
if (keyp != NULL || keyp->length > 0)
if (keyp != NULL && keyp->length > 0)
{
*length = keyp->length;
status = CDI_NOERR;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment