From 335a11b14b35e261c484d44a0e1b5ea9cc758e19 Mon Sep 17 00:00:00 2001 From: Anatoliy Belsky Date: Mon, 4 Jun 2012 21:30:04 +0200 Subject: initial libzip upgrade patch to 0.10.1 --- ext/zip/lib/zip_error.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'ext/zip/lib/zip_error.c') diff --git a/ext/zip/lib/zip_error.c b/ext/zip/lib/zip_error.c index aab7079456..b8d907abf4 100644 --- a/ext/zip/lib/zip_error.c +++ b/ext/zip/lib/zip_error.c @@ -1,6 +1,6 @@ /* zip_error.c -- struct zip_error helper functions - Copyright (C) 1999-2007 Dieter Baron and Thomas Klausner + Copyright (C) 1999-2009 Dieter Baron and Thomas Klausner This file is part of libzip, a library to manipulate ZIP archives. The authors can be contacted at @@ -99,3 +99,14 @@ _zip_error_set(struct zip_error *err, int ze, int se) err->sys_err = se; } } + + + +void +_zip_error_set_from_source(struct zip_error *err, struct zip_source *src) +{ + int ze, se; + + zip_source_error(src, &ze, &se); + _zip_error_set(err, ze, se); +} -- cgit v1.2.1