From 6343c0b8727ae6ce36d895f19c82347fa26e9bd2 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 29 Jun 2018 16:16:10 +0800 Subject: [PATCH] src/strip.vala --- src/strip.vala | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/strip.vala b/src/strip.vala index 4223b03..cb3e2c7 100644 --- a/src/strip.vala +++ b/src/strip.vala @@ -715,7 +715,9 @@ public class Strip : GLib.Object { Posix.exit(1); } - + if (need_return == -1) { + return ''; + } var rs = mysql.use_result(); //GLib.debug("got %d rows", (int) rs.num_rows()); @@ -728,7 +730,7 @@ public class Strip : GLib.Object { ret = row[0]; } - if (!need_return) { + if (need_return == 0) { if (StripApplication.opt_debug_sql) { GLib.debug("got %s", got_row ? "=Nothing=" : ret); } -- 2.39.2