]> sigrok.org Git - libsigrok.git/commit
input/logicport: silence a non-fatal glib runtime assertion
authorGerhard Sittig <redacted>
Sun, 3 Jun 2018 06:37:10 +0000 (08:37 +0200)
committerUwe Hermann <redacted>
Sun, 3 Jun 2018 17:28:46 +0000 (19:28 +0200)
commit49d9a095e8611674466d10f4e8cba9078ae2d2c0
treeaac6246720c64f15b23e727ab617ad159e7c4bc5
parenta38c2bfbbb622b79932cc751744d3265aa385f9b
input/logicport: silence a non-fatal glib runtime assertion

Explicitly check GString pointers for validity before calling glib
routines that would access string content. This silences an assertion
error for a non-fatal runtime condition:

(process:17044): GLib-CRITICAL **: g_string_free: assertion 'string != NULL' failed
src/input/logicport.c