[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-26 c3df816: Fix compilation warning in etags.c
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] emacs-26 c3df816: Fix compilation warning in etags.c |
Date: |
Sat, 16 Sep 2017 15:19:14 -0400 (EDT) |
branch: emacs-26
commit c3df816585c6b8953fd4075cff894ec2d9ce0596
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>
Fix compilation warning in etags.c
* lib-src/etags.c (etags_mktmp) [DOS_NT]: Don't dereference a NULL
pointer. Reported by Richard Copley <address@hidden>.
---
lib-src/etags.c | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/lib-src/etags.c b/lib-src/etags.c
index 4000f47..009cba5 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -7068,14 +7068,16 @@ etags_mktmp (void)
errno = temp_errno;
templt = NULL;
}
-
#if defined (DOS_NT)
- /* The file name will be used in shell redirection, so it needs to have
- DOS-style backslashes, or else the Windows shell will barf. */
- char *p;
- for (p = templt; *p; p++)
- if (*p == '/')
- *p = '\\';
+ else
+ {
+ /* The file name will be used in shell redirection, so it needs to have
+ DOS-style backslashes, or else the Windows shell will barf. */
+ char *p;
+ for (p = templt; *p; p++)
+ if (*p == '/')
+ *p = '\\';
+ }
#endif
return templt;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-26 c3df816: Fix compilation warning in etags.c,
Eli Zaretskii <=