about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorAdolfo OchagavĂ­a <aochagavia92@gmail.com>2014-07-22 18:24:33 +0200
committerAlex Crichton <alex@alexcrichton.com>2014-07-24 07:25:48 -0700
commit4ea1dd54943bb208d585c7ae8138df5699995a77 (patch)
tree072829598fe36318152b41565c6bd95312277627 /src/rustllvm/RustWrapper.cpp
parent6988bcd74c6ab85d0a5f85c8b96c61f7fb75ad1d (diff)
downloadrust-4ea1dd54943bb208d585c7ae8138df5699995a77.tar.gz
rust-4ea1dd54943bb208d585c7ae8138df5699995a77.zip
Add a null pointer check to CString::new
This also removes checks in other methods of `CString`

Breaking changes:
* `CString::new` now fails if `buf` is null. To avoid this add a check
before creatng a new `CString` .
* The `is_null` and `is_not_null` methods are deprecated, because a
`CString` cannot be null.
* Other methods which used to fail if the `CString` was null do not fail anymore

[breaking-change]
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions