projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7a19aac
)
Initialize summary_name and detail_name so stuff appears on stdout.
author
Keith Packard
<keithp@keithp.com>
Sun, 6 Sep 2009 20:04:31 +0000
(13:04 -0700)
committer
Keith Packard
<keithp@keithp.com>
Sun, 6 Sep 2009 20:04:31 +0000
(13:04 -0700)
Uninitialized variables lead to mysterious results.
Signed-off-by: Keith Packard <keithp@keithp.com>
ao-tools/ao-postflight/ao-postflight.c
patch
|
blob
|
history
diff --git
a/ao-tools/ao-postflight/ao-postflight.c
b/ao-tools/ao-postflight/ao-postflight.c
index c5814c93de4e7fe30fccd3a89c832aeb5693d4b1..6683c67c9f3a0624b4b2bd2435ca9ce65c34c76e 100644
(file)
--- a/
ao-tools/ao-postflight/ao-postflight.c
+++ b/
ao-tools/ao-postflight/ao-postflight.c
@@
-205,7
+205,7
@@
main (int argc, char **argv)
int c;
int serial;
char *s;
int c;
int serial;
char *s;
- char *summary_name
, *detail_name
;
+ char *summary_name
= NULL, *detail_name = NULL
;
while ((c = getopt_long(argc, argv, "S:D:", options, NULL)) != -1) {
switch (c) {
while ((c = getopt_long(argc, argv, "S:D:", options, NULL)) != -1) {
switch (c) {