Skip to content
Snippets Groups Projects
Commit 4a020af0 authored by Guido Gunther's avatar Guido Gunther :zzz:
Browse files

Split out message parsing

Current code would not check if messages are empty

          log_data->msg = g_strdup (line_split[1]);

While fixing that I noticed that GStrv's are being leaked so fix this
too by moving this into a easier to validate function. This

  - uses a new GStrv for every split
  - g_strdups the string right before assigning it to ChattyLog
  - g_auto frees the variables
parent 2bf92154
No related branches found
No related tags found
Pipeline #1589 passed with stage
in 2 minutes
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment