diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2005-01-13 22:18:57 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2005-01-13 22:18:57 +0000 |
commit | 0dabe0e0c232687d9aa67ccd0474f4df8daf4f76 (patch) | |
tree | bc56447abe93e8d3e9b59ab8365da724d43d6c22 /winsup/cygwin/path.h | |
parent | 9b8e782e11e7073a97af47a74f8e7816becdc5da (diff) | |
download | cygnal-0dabe0e0c232687d9aa67ccd0474f4df8daf4f76.tar.gz cygnal-0dabe0e0c232687d9aa67ccd0474f4df8daf4f76.tar.bz2 cygnal-0dabe0e0c232687d9aa67ccd0474f4df8daf4f76.zip |
* pinfo.cc (pinfo::exit): Don't access self after releasing it.
* path.h (path_conv::path_conv): Fill path with native device
name in case of device argument.
Diffstat (limited to 'winsup/cygwin/path.h')
-rw-r--r-- | winsup/cygwin/path.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/winsup/cygwin/path.h b/winsup/cygwin/path.h index 743246f9e..569d4560d 100644 --- a/winsup/cygwin/path.h +++ b/winsup/cygwin/path.h @@ -169,7 +169,10 @@ class path_conv const suffix_info *suffixes = NULL) __attribute__ ((regparm(3))); path_conv (const device& in_dev): fileattr (INVALID_FILE_ATTRIBUTES), - path_flags (0), known_suffix (NULL), error (0), dev (in_dev) {} + path_flags (0), known_suffix (NULL), error (0), dev (in_dev) + { + strcpy (path, in_dev.native); + } path_conv (int, const char *src, unsigned opt = PC_SYM_FOLLOW, const suffix_info *suffixes = NULL) |