File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 3030#include <errno.h>
3131#include <fcntl.h>
3232#include <libgen.h>
33+ #include <limits.h>
3334#include <stdbool.h>
3435#include <stdio.h>
3536#include <stdlib.h>
@@ -525,20 +526,20 @@ commit(struct repo_state *states, unsigned nstates)
525526 for (unsigned i = 0 ; i < nstates ; i ++ ) {
526527 r = add_staged_shlib_providers (& shared , & states [i ]);
527528 if (r < 0 )
528- return r ;
529+ goto err ;
529530 r = find_used_staged_shlibs (& shared , & states [i ]);
530531 if (r < 0 )
531- return r ;
532+ goto err ;
532533 }
533534
534535 // throw out shared libraries that are already satisfied
535536 for (unsigned i = 0 ; i < nstates ; i ++ ) {
536537 r = purge_satisfied_by_index (& shared , & states [i ]);
537538 if (r < 0 )
538- return r ;
539+ goto err ;
539540 r = purge_satisfied_by_stage (& shared , & states [i ]);
540541 if (r < 0 )
541- return r ;
542+ goto err ;
542543 }
543544
544545 // ... now if there are libraries left, there is an inconsistency
You can’t perform that action at this time.
0 commit comments