diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | io.c | 4 |
2 files changed, 5 insertions, 3 deletions
@@ -1,3 +1,7 @@ +2017-09-28 Arnold D. Robbins <arnold@skeeve.com> + + * io.c (devopen): Move declaration of `cp' to where it's first used. + 2017-09-18 Arnold D. Robbins <arnold@skeeve.com> * README: Update required version of texinfo.tex. @@ -1782,7 +1782,6 @@ int devopen(const char *name, const char *mode) { int openfd; - char *cp; int flag; struct inet_socket_info isi; int save_errno = 0; @@ -1805,8 +1804,7 @@ devopen(const char *name, const char *mode) bool hard_error = false; bool non_fatal = is_non_fatal_redirect(name, strlen(name)); char save; - - cp = (char *) name; + char *cp = (char *) name; /* socketopen requires NUL-terminated strings */ cp[isi.localport.offset+isi.localport.len] = '\0'; |