* Delete an existing script by name, if found. */
| 210 | * Delete an existing script by name, if found. |
| 211 | */ |
| 212 | static int |
| 213 | db_script_unset(const char *scriptname) |
| 214 | { |
| 215 | struct ddb_script *dsp; |
| 216 | |
| 217 | dsp = db_script_lookup(scriptname); |
| 218 | if (dsp == NULL) |
| 219 | return (ENOENT); |
| 220 | strcpy(dsp->ds_scriptname, ""); |
| 221 | strcpy(dsp->ds_script, ""); |
| 222 | return (0); |
| 223 | } |
| 224 | |
| 225 | /* |
| 226 | * Trim leading/trailing white space in a command so that we don't pass |
no test coverage detected