| 243 | } |
| 244 | |
| 245 | static void |
| 246 | db_command_trim(char **commandp) |
| 247 | { |
| 248 | char *command; |
| 249 | |
| 250 | command = *commandp; |
| 251 | while (db_command_trimmable(*command)) |
| 252 | command++; |
| 253 | while ((strlen(command) > 0) && |
| 254 | db_command_trimmable(command[strlen(command) - 1])) |
| 255 | command[strlen(command) - 1] = 0; |
| 256 | *commandp = command; |
| 257 | } |
| 258 | |
| 259 | /* |
| 260 | * Execute a script, breaking it up into individual commands and passing them |
no test coverage detected