gnucash master: Don't reference undefined variable if price is not set.
Mike Alexander
mta at code.gnucash.org
Tue Jun 9 02:24:30 EDT 2020
Updated via https://github.com/Gnucash/gnucash/commit/5660fde3 (commit)
from https://github.com/Gnucash/gnucash/commit/15938d07 (commit)
commit 5660fde36a6ca0e8adff72d526606904fad7c9f8
Author: Mike Alexander <mta at umich.edu>
Date: Tue Jun 9 02:10:25 2020 -0400
Don't reference undefined variable if price is not set.
diff --git a/libgnucash/quotes/gnc-fq-dump.in b/libgnucash/quotes/gnc-fq-dump.in
index e44082cc6..ed5aa389d 100755
--- a/libgnucash/quotes/gnc-fq-dump.in
+++ b/libgnucash/quotes/gnc-fq-dump.in
@@ -101,14 +101,13 @@ sub report {
$$qh{$itemname, "nav"} = "**missing**";
$$qh{$itemname, "price"} = "**missing**";
$gccanuse = 0;
- } else {
- $last = defined($$qh{$itemname, "last"})
- ? $$qh{$itemname, "last"} : "";
- $nav = defined($$qh{$itemname, "nav"})
- ? $$qh{$itemname, "nav"} : "";
- $price = defined($$qh{$itemname, "price"})
- ? $$qh{$itemname, "price"} : "";
}
+ $last = defined($$qh{$itemname, "last"})
+ ? $$qh{$itemname, "last"} : "";
+ $nav = defined($$qh{$itemname, "nav"})
+ ? $$qh{$itemname, "nav"} : "";
+ $price = defined($$qh{$itemname, "price"})
+ ? $$qh{$itemname, "price"} : "";
$timezone = defined($$qh{$itemname, "timezone"})
? $$qh{$itemname, "timezone"} : "";
Summary of changes:
libgnucash/quotes/gnc-fq-dump.in | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
More information about the gnucash-changes
mailing list