X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=session_file.c;h=ec98065d2c8f052a89630eb1ddb7ec6344da50a4;hb=08d4cc1d146478aa9f6032fc65142293df822726;hp=0e3c56bec13be086a4cf7ce10f725c17363773a2;hpb=b53738baf76219237e0a6629905981d7a1f2508e;p=libsigrok.git diff --git a/session_file.c b/session_file.c index 0e3c56be..ec98065d 100644 --- a/session_file.c +++ b/session_file.c @@ -107,7 +107,7 @@ int sr_session_load(const char *filename) device->plugin->set_configuration(devcnt, SR_HWCAP_CAPTUREFILE, val); g_ptr_array_add(capturefiles, val); } else if (!strcmp(keys[j], "samplerate")) { - tmp_u64 = sr_parse_sizestring(val); + sr_parse_sizestring(val, &tmp_u64); device->plugin->set_configuration(devcnt, SR_HWCAP_SAMPLERATE, &tmp_u64); } else if (!strcmp(keys[j], "unitsize")) { tmp_u64 = strtoull(val, NULL, 10);