diff options
| author | Adolfo OchagavĂa <aochagavia92@gmail.com> | 2014-07-22 18:24:33 +0200 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-07-24 07:25:48 -0700 |
| commit | 4ea1dd54943bb208d585c7ae8138df5699995a77 (patch) | |
| tree | 072829598fe36318152b41565c6bd95312277627 /src/rustllvm/RustWrapper.cpp | |
| parent | 6988bcd74c6ab85d0a5f85c8b96c61f7fb75ad1d (diff) | |
| download | rust-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
