URL:
<http://savannah.gnu.org/bugs/?23965>
Summary: Uninitialized variable in cnee
Project: Xnee
Submitted by: psfales
Submitted on: Wednesday 07/30/2008 at 11:38
Category: cnee
Severity: 3 - Normal
Item Group: Minor fault
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
If one types "cnee" with no arguments, the value of an un-initialzied pointer
is printed. On Linux, the results in garbabe printed on the screen:
$ cnee
Error number: 6
Error: Wrong paramters
Description: You have given invalid input to Xnee
Argument: X)Ê¿
I used this patch:
diff -ur xnee-3.02/cnee/src/parse.c xnee-3.02.new/cnee/src/parse.c
--- xnee-3.02/cnee/src/parse.c 2007-06-28 05:14:17.000000000 -0500
+++ xnee-3.02.new/cnee/src/parse.c 2008-07-29 22:40:01.000000000 -0500
@@ -522,7 +522,7 @@
const char *descr;
const char *err;
const char *sol;
- char *saved_arg;
+ char *saved_arg = "(NONE)";
int entry ;
int args_used;
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?23965>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-xnee mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-xnee