init.cmd List devices, Start USB poller, libstring fix str_split_lines (), CE various fixes
This commit is contained in:
6
ce/ce.c
6
ce/ce.c
@@ -72,6 +72,8 @@ static bool split_lines_cb (void* ctx, const char* start, size_t len) {
|
||||
if (line[0] != '\0')
|
||||
exec_line (line);
|
||||
|
||||
free (line);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -85,6 +87,8 @@ void app_main (void) {
|
||||
int has_script = env_get (process_get_pgid (), "s", (void*)scriptpathbuf, sizeof (scriptpathbuf));
|
||||
|
||||
if (has_script == ST_OK) {
|
||||
interactive_mode = false;
|
||||
|
||||
char volume[VOLUME_MAX];
|
||||
const char* path;
|
||||
int ret;
|
||||
@@ -114,6 +118,8 @@ void app_main (void) {
|
||||
|
||||
free (buffer);
|
||||
} else {
|
||||
interactive_mode = true;
|
||||
|
||||
while (interp_is_running ()) {
|
||||
memset (line, 0, sizeof (line));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user