]> git.ipfire.org Git - location/libloc.git/commit
lua: Initialize the database object pointer
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 21 May 2024 15:34:57 +0000 (15:34 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 21 May 2024 15:34:57 +0000 (15:34 +0000)
commit86b168ed95e468e8be4ba25dc7e65e7cf37b486a
treef0b22be9df99dfe353d5da992c2eca3024e9c1e5
parent7681b3ba8cd8b8674ab0028a43a70fdf43e72c69
lua: Initialize the database object pointer

Unfortunately Lua does not initialize any new user data. Therefore it
could happen that the cleanup function will try to tidy up after a new
Database object could not be set up correctly and cause a segmentation
fault.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/lua/database.c