index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2011-03-28 12:48:37 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-04-20 20:10:27 -0500 |
commit | 3c5661ec3cd5cdf2f1c3101d90789c83786a6897 (patch) | |
tree | 7f23826062a221b5a8d773ee3f47207a6de37339 /lib/libalpm/db.c | |
parent | 791928dc48bcd94ef5cb57b4da36fb5e398e30da (diff) |
-rw-r--r-- | lib/libalpm/db.c | 9 |
diff --git a/lib/libalpm/db.c b/lib/libalpm/db.c index cd741891..3808a275 100644 --- a/lib/libalpm/db.c +++ b/lib/libalpm/db.c @@ -322,21 +322,14 @@ const pmpgpsig_t *_alpm_db_pgpsig(pmdb_t *db) ASSERT(db != NULL, return(NULL)); if(db->pgpsig.rawdata == NULL) { - size_t len; const char *dbfile; - char *sigfile; int ret; dbfile = _alpm_db_path(db); - len = strlen(dbfile) + 5; - MALLOC(sigfile, len, RET_ERR(PM_ERR_MEMORY, NULL)); - sprintf(sigfile, "%s.sig", dbfile); /* TODO: do something with ret value */ - ret = _alpm_load_signature(sigfile, &(db->pgpsig)); + ret = _alpm_load_signature(dbfile, &(db->pgpsig)); (void)ret; - - FREE(sigfile); } return &(db->pgpsig); |