aboutsummaryrefslogtreecommitdiff
path: root/src/backend_librsvg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend_librsvg.c')
-rw-r--r--src/backend_librsvg.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/backend_librsvg.c b/src/backend_librsvg.c
index ae81ef4..c8dde19 100644
--- a/src/backend_librsvg.c
+++ b/src/backend_librsvg.c
@@ -2,6 +2,7 @@
#include "backend.h"
#include "source.h"
+#include <assert.h>
#include <stdlib.h>
#include <string.h>
@@ -46,11 +47,7 @@ static struct imv_bitmap *to_imv_bitmap(GdkPixbuf *bitmap)
static void report_error(struct imv_source *src)
{
- if (!src->callback) {
- fprintf(stderr, "imv_source(%s) has no callback configured. "
- "Discarding error.\n", src->name);
- return;
- }
+ assert(src->callback);
struct imv_source_message msg;
msg.source = src;
@@ -65,11 +62,7 @@ static void report_error(struct imv_source *src)
static void send_bitmap(struct imv_source *src, GdkPixbuf *bitmap)
{
- if (!src->callback) {
- fprintf(stderr, "imv_source(%s) has no callback configured. "
- "Discarding result.\n", src->name);
- return;
- }
+ assert(src->callback);
struct imv_source_message msg;
msg.source = src;