[gnome-calculator] Fix option list not being null terminated
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calculator] Fix option list not being null terminated
- Date: Mon, 3 Dec 2012 03:54:07 +0000 (UTC)
commit 6571a6cc8cca2dcd0c1de9dbe470207a10486a4e
Author: Robert Ancell <robert ancell canonical com>
Date: Mon Dec 3 16:54:02 2012 +1300
Fix option list not being null terminated
src/gnome-calculator.vala | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/gnome-calculator.vala b/src/gnome-calculator.vala
index af22c37..dfdbc43 100644
--- a/src/gnome-calculator.vala
+++ b/src/gnome-calculator.vala
@@ -294,7 +294,7 @@ public class Calculator : Gtk.Application
program_name = Path.get_basename (args [0]);
- var options = new OptionEntry [3];
+ var options = new OptionEntry [4];
string? solve_equation = null;
options[0] = {"solve",
@@ -321,6 +321,8 @@ public class Calculator : Gtk.Application
ref show_version,
_("Show release version"),
null};
+
+ options[3] = { null, 0, 0, 0, null, null, null };
try
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]