xbps-pkgdb: always set rootdir as an empty string, otherwise if -r

is not specified it will fail to get the regpkgdb plist file.

Bug found by pancake.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091019214947-cv57nebkpo48spce
This commit is contained in:
Juan RP 2009-10-19 23:49:47 +02:00
parent fc659323a9
commit bc3eeeec58

View File

@ -91,7 +91,7 @@ main(int argc, char **argv)
{
prop_dictionary_t dict;
const char *version;
char *plist, *pkgname, *in_chroot_env, *root = NULL;
char *plist, *pkgname, *in_chroot_env, *root = "";
bool in_chroot = false;
int c, rv = 0;