home
/
code
/
khatus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Initialize some of uninitialized variables
[khatus.git]
/
x5
/
khatus.c
diff --git
a/x5/khatus.c
b/x5/khatus.c
index
3897b87
..
d14c7d4
100644
(file)
--- a/
x5/khatus.c
+++ b/
x5/khatus.c
@@
-228,7
+228,7
@@
opts_parse_any(Config *cfg, int argc, char *argv[], int i)
}
void
}
void
-opts_parse(Config *cfg, int argc, char *argv[]
, int i
)
+opts_parse(Config *cfg, int argc, char *argv[])
{
opts_parse_any(cfg, argc, argv, 1);
{
opts_parse_any(cfg, argc, argv, 1);
@@
-268,7
+268,7
@@
void
read_all(Config *cfg, char *buf)
{
fd_set fds;
read_all(Config *cfg, char *buf)
{
fd_set fds;
- int maxfd;
+ int maxfd
= -1
;
int ready;
struct stat st;
int ready;
struct stat st;
@@
-313,11
+313,11
@@
main(int argc, char *argv[])
int prefix = 0;
char *buf;
Config *cfg = &defaults;
int prefix = 0;
char *buf;
Config *cfg = &defaults;
- Display *display;
+ Display *display
= NULL
;
argv0 = argv[0];
argv0 = argv[0];
- opts_parse(cfg, argc, argv
, 1
);
+ opts_parse(cfg, argc, argv);
debug("argv0 = %s\n", argv0);
config_print(cfg);
if (cfg->files == NULL)
debug("argv0 = %s\n", argv0);
config_print(cfg);
if (cfg->files == NULL)
This page took
0.024183 seconds
and
4
git commands to generate.