summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/src/taskvariabledelete.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/rtems/src/taskvariabledelete.c')
-rw-r--r--cpukit/rtems/src/taskvariabledelete.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cpukit/rtems/src/taskvariabledelete.c b/cpukit/rtems/src/taskvariabledelete.c
index 6089306ae4..5dd01497a8 100644
--- a/cpukit/rtems/src/taskvariabledelete.c
+++ b/cpukit/rtems/src/taskvariabledelete.c
@@ -31,6 +31,9 @@ rtems_status_code rtems_task_variable_delete(
Objects_Locations location;
rtems_task_variable_t *tvp, *prev;
+ if ( !ptr )
+ return RTEMS_INVALID_ADDRESS;
+
prev = NULL;
the_thread = _Thread_Get (tid, &location);