From 2f2fe94c3a3dbd1ac13744729d30c36e69386456 Mon Sep 17 00:00:00 2001 From: Klas Lindfors Date: Fri, 19 Apr 2013 15:29:14 +0200 Subject: [PATCH] check that ykp_export_config() call actually worked --- ykpersonalize.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ykpersonalize.c b/ykpersonalize.c index 5aaaa06..16f2733 100644 --- a/ykpersonalize.c +++ b/ykpersonalize.c @@ -198,7 +198,9 @@ int main(int argc, char **argv) } if (outf) { - ykp_export_config(cfg, data, 1024, data_format); + if(!(ykp_export_config(cfg, data, 1024, data_format))) { + goto err; + } if(!(fwrite(data, 1, strlen(data), outf))) { goto err; } -- 2.39.5