diff options
Diffstat (limited to 'util-linux')
-rw-r--r-- | util-linux/script.c | 2 | ||||
-rw-r--r-- | util-linux/volume_id/get_devname.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/util-linux/script.c b/util-linux/script.c index 1c95ea5..700f0cb 100644 --- a/util-linux/script.c +++ b/util-linux/script.c @@ -168,7 +168,7 @@ int script_main(int argc ATTRIBUTE_UNUSED, char **argv) /* child: make pty slave to be input, output, error; run shell */ close(pty); /* close pty master */ /* open pty slave to fd 0,1,2 */ - close(0); + close(0); xopen(pty_line, O_RDWR); /* uses fd 0 */ xdup2(0, 1); xdup2(0, 2); diff --git a/util-linux/volume_id/get_devname.c b/util-linux/volume_id/get_devname.c index b46aad4..d1968b7 100644 --- a/util-linux/volume_id/get_devname.c +++ b/util-linux/volume_id/get_devname.c @@ -71,7 +71,7 @@ static void uuidcache_addentry(char *device, /*int major, int minor,*/ char *label, char *uuid) { struct uuidCache_s *last; - + if (!uuidCache) { last = uuidCache = xzalloc(sizeof(*uuidCache)); } else { |