projects
/
app.mailtrimmer
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c879211
)
src/strip.vala
author
Alan Knowles
<alan@roojs.com>
Fri, 29 Jun 2018 08:16:10 +0000
(16:16 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 29 Jun 2018 08:16:10 +0000
(16:16 +0800)
src/strip.vala
patch
|
blob
|
history
diff --git
a/src/strip.vala
b/src/strip.vala
index
4223b03
..
cb3e2c7
100644
(file)
--- a/
src/strip.vala
+++ b/
src/strip.vala
@@
-715,7
+715,9
@@
public class Strip : GLib.Object {
Posix.exit(1);
}
Posix.exit(1);
}
-
+ if (need_return == -1) {
+ return '';
+ }
var rs = mysql.use_result();
//GLib.debug("got %d rows", (int) rs.num_rows());
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];
}
ret = row[0];
}
- if (
!need_return
) {
+ if (
need_return == 0
) {
if (StripApplication.opt_debug_sql) {
GLib.debug("got %s", got_row ? "=Nothing=" : ret);
}
if (StripApplication.opt_debug_sql) {
GLib.debug("got %s", got_row ? "=Nothing=" : ret);
}