Skip to content

Commit 485ec14

Browse files
Jukka Laitinenbkueng
Jukka Laitinen
authored andcommittedJul 21, 2023
px4_init.cpp: Properly check the return value of mounting procfs
Signed-off-by: Jukka Laitinen <[email protected]>
1 parent 6889443 commit 485ec14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎platforms/nuttx/src/px4/common/px4_init.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ int px4_platform_init()
163163
#if defined(CONFIG_FS_PROCFS)
164164
int ret_mount_procfs = mount(nullptr, "/proc", "procfs", 0, nullptr);
165165

166-
if (ret < 0) {
166+
if (ret_mount_procfs < 0) {
167167
syslog(LOG_ERR, "ERROR: Failed to mount procfs at /proc: %d\n", ret_mount_procfs);
168168
}
169169

0 commit comments

Comments
 (0)