| 5304 | |
| 5305 | |
| 5306 | static gpre_dbb* dup_dbb(const gpre_dbb* db) |
| 5307 | { |
| 5308 | |
| 5309 | // **************************************** |
| 5310 | // |
| 5311 | // d u p _ d b b |
| 5312 | // |
| 5313 | // **************************************** |
| 5314 | // |
| 5315 | // dirty duplication of a gpre_dbb. |
| 5316 | // just memcpy as no memory |
| 5317 | // is freed in gpre. |
| 5318 | // |
| 5319 | // ************************************* |
| 5320 | if (!db) |
| 5321 | return NULL; |
| 5322 | gpre_dbb* newdb = (gpre_dbb*) MSC_alloc(DBB_LEN); |
| 5323 | // CVC: the casts here should be tested and removed. |
| 5324 | memcpy((SCHAR*) newdb, (const SCHAR*) db, DBB_LEN); |
| 5325 | |
| 5326 | return newdb; |
| 5327 | } |
| 5328 | |
| 5329 | |
| 5330 | //____________________________________________________________ |
no test coverage detected