[CDRIVER-44] use strdup in place of malloc+strcpy Created: 17/Feb/11 Updated: 03/May/17 Resolved: 17/Feb/11 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Trivial - P5 |
| Reporter: | Jim Meyering | Assignee: | Kyle Banker |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
latest from git, fedora 14, x86_64 |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Description |
|
This replaces two more uses of malloc+strcpy with more succinct strdup uses. |
| Comments |
| Comment by Kyle Banker [ 17/Feb/11 ] |
|
Going to use bson_malloc + strcpy for now for consistent malloc error checking. |