Permit conditional query formats on not yet cached data too
authorPanu Matilainen <pmatilai@redhat.com>
Mon, 12 Oct 2009 07:48:59 +0000 (10:48 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Mon, 12 Oct 2009 07:48:59 +0000 (10:48 +0300)
lib/headerfmt.c

index 97332e7..95bb3ee 100644 (file)
@@ -689,7 +689,7 @@ static char * singleSprintf(headerSprintfArgs hsa, sprintfToken token,
        break;
 
     case PTOK_COND:
-       if (getCached(hsa->cache, token->u.cond.tag.tag) ||
+       if (getData(hsa, token->u.cond.tag.tag) ||
                      headerIsEntry(hsa->h, token->u.cond.tag.tag)) {
            spft = token->u.cond.ifFormat;
            condNumFormats = token->u.cond.numIfTokens;