diff options
author | Wei | 2017-12-20 14:33:45 -0600 |
---|---|---|
committer | Wei | 2017-12-20 14:33:45 -0600 |
commit | 9c11804d81a747a884bb8b4dea3d6b202b6b7f59 (patch) | |
tree | a745945de8302a9255c5e2f5b5e03e47e55f3bfd | |
parent | 6aac730314e2b6f97480069aaf114467b79d0735 (diff) | |
download | posix-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |