cache.c: In function `blkid_get_cache_filename':
cache.c:113 warning: return makes pointer from integer without a cast
Signed-off-by: Karel Zak <kzak@redhat.com>
else {
struct blkid_config *c = blkid_read_config(NULL);
if (!c)
- return -BLKID_ERR_PARAM;
- filename = c->cachefile; /* already allocated */
- c->cachefile = NULL;
- blkid_free_config(c);
+ filename = blkid_strdup(BLKID_CONFIG_FILE);
+ else {
+ filename = c->cachefile; /* already allocated */
+ c->cachefile = NULL;
+ blkid_free_config(c);
+ }
}
return filename;
}