summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/event.c b/event.c
index cc58c79..2f85b4f 100644
--- a/event.c
+++ b/event.c
@@ -245,5 +245,5 @@ int pcilib_grab(pcilib_t *ctx, pcilib_event_t event_mask, size_t *size, void **d
} else err = pcilib_trigger(ctx, event_mask, 0, NULL);
}
pcilib_stop(ctx);
- return 0;
+ return err;
}