aboutsummaryrefslogtreecommitdiff
path: root/nuttx/sched/prctl.c
diff options
context:
space:
mode:
authorpx4dev <px4@purgatory.org>2013-01-11 00:39:22 -0800
committerpx4dev <px4@purgatory.org>2013-01-11 00:39:22 -0800
commitccf9882dc5dbe38b621110f82c4e2ff63aef900e (patch)
tree18b0af628174bf27815dd52a376c8b72b6a626d4 /nuttx/sched/prctl.c
parent40dfbf0d977729951d73bcb089ca8f89c7b83efe (diff)
parent0f2decb70f505b108999fcdb80e89d7aae6760ce (diff)
downloadpx4-firmware-ccf9882dc5dbe38b621110f82c4e2ff63aef900e.tar.gz
px4-firmware-ccf9882dc5dbe38b621110f82c4e2ff63aef900e.tar.bz2
px4-firmware-ccf9882dc5dbe38b621110f82c4e2ff63aef900e.zip
Merge branch 'master' into nuttx-merge-5447
Diffstat (limited to 'nuttx/sched/prctl.c')
-rw-r--r--nuttx/sched/prctl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/nuttx/sched/prctl.c b/nuttx/sched/prctl.c
index d71a0e174..3db83d3d7 100644
--- a/nuttx/sched/prctl.c
+++ b/nuttx/sched/prctl.c
@@ -157,8 +157,14 @@ int prctl(int option, ...)
goto errout;
}
+ /* Not reachable unless CONFIG_TASK_NAME_SIZE is > 0. NOTE: This might
+ * change if additional commands are supported.
+ */
+
+#if CONFIG_TASK_NAME_SIZE > 0
va_end(ap);
return OK;
+#endif
errout:
va_end(ap);