mirror of
https://github.com/opnsense/src.git
synced 2026-04-28 17:49:22 -04:00
procfs_doprocfile(): simplify
Now that proc_get_binpath() does not return NULL in fullpath on success, directly use sbuf_cat() over the value. Sponsored by: The FreeBSD Foundation MFC after: 3 days
This commit is contained in:
parent
7ac82c96fe
commit
15bd9fa3be
1 changed files with 1 additions and 1 deletions
|
|
@ -77,7 +77,7 @@ procfs_doprocfile(PFS_FILL_ARGS)
|
|||
PROC_LOCK(p);
|
||||
error = proc_get_binpath(p, binpath, &fullpath, &freepath);
|
||||
if (error == 0)
|
||||
sbuf_printf(sb, "%s", fullpath == NULL ? "" : fullpath);
|
||||
sbuf_cat(sb, fullpath);
|
||||
free(binpath, M_TEMP);
|
||||
free(freepath, M_TEMP);
|
||||
return (error);
|
||||
|
|
|
|||
Loading…
Reference in a new issue