aboutsummaryrefslogtreecommitdiff
path: root/lpm.c
diff options
context:
space:
mode:
authorAdam <adamdharrison@gmail.com>2022-09-18 18:42:30 -0400
committerAdam <adamdharrison@gmail.com>2022-09-18 18:42:30 -0400
commit3c17efb0fbc6d26d3a59790ba26fab6756688d41 (patch)
treee1fad7fb9563e09267cd3e6bbe41499a4121c640 /lpm.c
parenta1feb9696cbbffc3ba061dcffc5a0ada9891fb22 (diff)
downloadlite-xl-plugin-manager-3c17efb0fbc6d26d3a59790ba26fab6756688d41.tar.gz
lite-xl-plugin-manager-3c17efb0fbc6d26d3a59790ba26fab6756688d41.zip
Fixed segfault.
Diffstat (limited to 'lpm.c')
-rw-r--r--lpm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lpm.c b/lpm.c
index 117e616..4a7381f 100644
--- a/lpm.c
+++ b/lpm.c
@@ -477,7 +477,8 @@ static const luaL_Reg system_lib[] = {
{ "reset", lpm_reset }, // Updates a git repository to the specified commit/hash/branch.
{ "status", lpm_status }, // Returns the git repository in question's current branch, if any, and commit hash.
{ "get", lpm_get }, // HTTP(s) GET request.
- { "certs", lpm_certs } // Sets the SSL certificate chain folder/file.
+ { "certs", lpm_certs }, // Sets the SSL certificate chain folder/file.
+ { NULL, NULL }
};
@@ -514,7 +515,8 @@ int main(int argc, char* argv[]) {
git_libgit2_init();
lua_State* L = luaL_newstate();
luaL_openlibs(L);
- luaL_newlib(L, system_lib); lua_setglobal(L, "system");
+ luaL_newlib(L, system_lib);
+ lua_setglobal(L, "system");
lua_newtable(L);
for (int i = 0; i < argc; ++i) {
lua_pushstring(L, argv[i]);