diff options
Diffstat (limited to 'URPM.xs')
-rw-r--r-- | URPM.xs | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -127,6 +127,8 @@ static void get_fullname_parts(URPM__Package pkg, char **name, char **version, char **release, char **arch, char **eos) { char *_version = NULL, *_release = NULL, *_arch = NULL, *_eos = NULL; + if (!pkg->info) + return; if ((_eos = strchr(pkg->info, '@')) != NULL) { *_eos = 0; /* mark end of string to enable searching backwards */ if ((_arch = strrchr(pkg->info, '.')) != NULL) { |