]> sigrok.org Git - libsigrok.git/commit - src/std.c
Fix a segfault with input/output modules.
authorUwe Hermann <redacted>
Sun, 17 Jul 2016 17:39:04 +0000 (19:39 +0200)
committerUwe Hermann <redacted>
Sun, 17 Jul 2016 17:39:04 +0000 (19:39 +0200)
commit236303160c955ee58f08d00739b16da37386e6cc
tree3962b76dbce035d33ffa4089e3a7835d82687955
parentced48274051be6b3b1ed612260c893fdb2525946
Fix a segfault with input/output modules.

Some functions in std.c were using

  const char *prefix = sdi->driver->name;

but were called from input/output modules as well (which don't have
a "driver" field).

As a temporary workaround, use "unknown" as prefix in such cases until
a more permanent solution is implemented.

This fixes bug #813.
src/std.c