| 730 | } |
| 731 | |
| 732 | static char * |
| 733 | make_state_path(const char *filename) |
| 734 | { |
| 735 | if ('/' == *filename) { |
| 736 | return TSstrdup(filename); |
| 737 | } else { |
| 738 | char buf[8192]; |
| 739 | const char *dir = TSInstallDirGet(); |
| 740 | snprintf(buf, sizeof(buf), "%s/%s/%s", dir, DEFAULT_DIR, filename); |
| 741 | return TSstrdup(buf); |
| 742 | } |
| 743 | |
| 744 | return nullptr; |
| 745 | } |
| 746 | |
| 747 | void |
| 748 | TSPluginInit(int argc, const char *argv[]) |
no test coverage detected