diff --git a/sane/gb_json.cpp b/sane/gb_json.cpp index fd282d3..b7d5eb9 100644 --- a/sane/gb_json.cpp +++ b/sane/gb_json.cpp @@ -904,7 +904,6 @@ namespace gb if (jsn_->attach_text(&raw[0])) { ret = true; - file_ = file; } else { @@ -913,6 +912,7 @@ namespace gb } } } + file_ = file; return ret; }