From 8a88e36fdb3a7999d6448105017e5deba7ee3a14 Mon Sep 17 00:00:00 2001 From: Cosmin Apreuetsei Date: Sun, 1 Jun 2014 15:23:04 +0300 Subject: [PATCH] unimportant --- mysql.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mysql.lua b/mysql.lua index e828218..021c01c 100644 --- a/mysql.lua +++ b/mysql.lua @@ -4,7 +4,7 @@ local bit = require'bit' require'mysql_h' local myok, myC = pcall(ffi.load, ffi.abi'win' and 'libmysql' or 'mysqlclient') local maok, maC = pcall(ffi.load, ffi.abi'win' and 'libmariadb' or 'mariadb') -local C = maok and myC or maC +local C = assert((myok and myC) or (maok and maC), 'mysql or mariadb client library not found') local M = {C = C} --we compare NULL pointers against NULL instead of nil for compatibility with luaffi.