aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei2017-12-20 14:33:45 -0600
committerWei2017-12-20 14:33:45 -0600
commit9c11804d81a747a884bb8b4dea3d6b202b6b7f59 (patch)
treea745945de8302a9255c5e2f5b5e03e47e55f3bfd
parent6aac730314e2b6f97480069aaf114467b79d0735 (diff)
downloadposix-smp-PRSDK-3370.tar.gz
posix-smp-PRSDK-3370.tar.xz
posix-smp-PRSDK-3370.zip
posix-smp: fixed PRSDK-3370PRSDK-3370
Signed-off-by: Wei <mwei@ti.com>
-rw-r--r--dhry_1.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dhry_1.c b/dhry_1.c
index 3114c49..9585c24 100644
--- a/dhry_1.c
+++ b/dhry_1.c
@@ -224,7 +224,9 @@ extern clock_t clock();
224 /* Initializations */ 224 /* Initializations */
225 225
226 inst.Next_Ptr_Glob = (Rec_Pointer) malloc (sizeof (Rec_Type)); 226 inst.Next_Ptr_Glob = (Rec_Pointer) malloc (sizeof (Rec_Type));
227 if (inst.Next_Ptr_Glob==NULL) return arg;
227 inst.Ptr_Glob = (Rec_Pointer) malloc (sizeof (Rec_Type)); 228 inst.Ptr_Glob = (Rec_Pointer) malloc (sizeof (Rec_Type));
229 if (inst.Ptr_Glob==NULL) return arg;
228 230
229 inst.Ptr_Glob->Ptr_Comp = inst.Next_Ptr_Glob; 231 inst.Ptr_Glob->Ptr_Comp = inst.Next_Ptr_Glob;
230 inst.Ptr_Glob->Discr = Ident_1; 232 inst.Ptr_Glob->Discr = Ident_1;