summaryrefslogtreecommitdiff
path: root/bindings
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2012-10-29 11:49:09 +0100
committerMichael Schroeder <mls@suse.de>2012-10-29 11:49:09 +0100
commit3a813744404dc0f0041003a7d18f451c82e64a11 (patch)
tree347b0d2756af5727c007fe949b801f09597f7335 /bindings
parentcb28413d8e7463e364a4a994331e87a452d1cd74 (diff)
downloadlibsolv-3a813744404dc0f0041003a7d18f451c82e64a11.tar.gz
libsolv-3a813744404dc0f0041003a7d18f451c82e64a11.tar.bz2
libsolv-3a813744404dc0f0041003a7d18f451c82e64a11.zip
fix selection_limit_rel call for debian nevra match
Diffstat (limited to 'bindings')
-rw-r--r--bindings/solv.i3
1 files changed, 1 insertions, 2 deletions
diff --git a/bindings/solv.i b/bindings/solv.i
index 12df242..021ca6f 100644
--- a/bindings/solv.i
+++ b/bindings/solv.i
@@ -784,9 +784,8 @@ typedef struct {
%rename("str") __str__;
#endif
const char *__str__() {
- char *s;
int i;
- s = pool_tmpjoin($self->pool, 0, 0, 0);
+ char *s = pool_tmpjoin($self->pool, 0, 0, 0);
for (i = 0; i < $self->q.count; i += 2)
s = pool_tmpappend($self->pool, s, " | ", solver_select2str($self->pool, $self->q.elements[i] & SOLVER_SELECTMASK, $self->q.elements[i + 1]));
return *s ? s + 3 : s;