(video_state_python.c) Cleanup

This commit is contained in:
twinaphex 2015-03-28 21:18:46 +01:00
parent 80d8607fd2
commit 2f545f410d

View File

@ -315,9 +315,8 @@ py_state_t *py_state_new(const char *script,
* isn't standardized across environments.
* PyRun_SimpleFile() breaks on Windows because it's
* compiled with MSVC. */
char *script_ = NULL;
ssize_t len;
char *script_ = NULL;
bool ret = read_file(script, (void**)&script_, &len);
if (!ret || len < 0)
{