ogl_beamforming

Ultrasound Beamforming Implemented with OpenGL
git clone anongit@rnpnr.xyz:ogl_beamforming.git
Log | Files | Refs | Feed | Submodules | LICENSE

Commit: 649e9c2e567af6c6cddf24a4c7c242c5d1e54ec8
Parent: d2523a2557b686e026026a989b0245ccc0b7ad1b
Author: Randy Palamar
Date:   Wed,  9 Apr 2025 16:03:26 -0600

util: c_str_to_s8 can take 0 as an argument

Diffstat:
Mutil.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/util.c b/util.c @@ -390,7 +390,7 @@ static s8 c_str_to_s8(char *cstr) { s8 result = {.data = (u8 *)cstr}; - while (*cstr) { result.len++; cstr++; } + if (cstr) { while (*cstr) { result.len++; cstr++; } } return result; }