[ostree] ostree-repo-pull: Fix inverted assert condition for maxdepth
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] ostree-repo-pull: Fix inverted assert condition for maxdepth
- Date: Thu, 30 Oct 2014 15:56:54 +0000 (UTC)
commit 65c059401195ec1873ad2a04eba93c8438786dbe
Author: Giuseppe Scrivano <gscrivan redhat com>
Date: Thu Oct 30 10:58:50 2014 +0100
ostree-repo-pull: Fix inverted assert condition for maxdepth
Signed-off-by: Giuseppe Scrivano <gscrivan redhat com>
src/libostree/ostree-repo-pull.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libostree/ostree-repo-pull.c b/src/libostree/ostree-repo-pull.c
index f687ab9..e1ca435 100644
--- a/src/libostree/ostree-repo-pull.c
+++ b/src/libostree/ostree-repo-pull.c
@@ -1338,7 +1338,7 @@ ostree_repo_pull_with_options (OstreeRepo *self,
(void) g_variant_lookup (options, "depth", "i", &pull_data->maxdepth);
}
- g_return_val_if_fail (pull_data->maxdepth < -1, FALSE);
+ g_return_val_if_fail (pull_data->maxdepth >= -1, FALSE);
if (dir_to_pull)
g_return_val_if_fail (dir_to_pull[0] == '/', FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]