aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--URPM.xs4
1 files changed, 1 insertions, 3 deletions
diff --git a/URPM.xs b/URPM.xs
index a64f174..4cf3928 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -1972,12 +1972,10 @@ Pkg_size(pkg)
URPM::Package pkg
CODE:
if (pkg->info) {
- char *s, *eos;
+ char *s;
if ((s = strchr(pkg->info, '@')) != NULL && (s = strchr(s+1, '@')) != NULL) {
- if ((eos = strchr(s+1, '@')) != NULL) *eos = 0; /* mark end of string to enable searching backwards */
RETVAL = atoi(s+1);
- if (eos != NULL) *eos = '@';
} else {
RETVAL = 0;
}