Print this page
OS-1576 Sundry uninitialised variables
Reviewed by: Robert Mustacchi <rm@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/fs.d/hyprlofs/hlcfg/hlcfg.c
          +++ new/usr/src/cmd/fs.d/hyprlofs/hlcfg/hlcfg.c
↓ open down ↓ 108 lines elided ↑ open up ↑
 109  109  }
 110  110  
 111  111  int
 112  112  main(int argc, char **argv)
 113  113  {
 114  114          int i, ap;
 115  115          cmd_t cmd;
 116  116          int cnt = 0;
 117  117          int fd;
 118  118          int rv = 0;
 119      -        hyprlofs_entry_t *e;
      119 +        hyprlofs_entry_t *e = NULL;
 120  120          hyprlofs_entries_t ents;
 121  121  
 122  122          if (argc < 3) {
 123  123                  (void) fprintf(stderr, "%s\n", usage);
 124  124                  exit(1);
 125  125          }
 126  126  
 127  127          if ((fd = open(argv[1], O_RDONLY)) < 0) {
 128  128                  perror("can't open hyprlofs mount");
 129  129                  exit(1);
↓ open down ↓ 115 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX