Skip to content

Commit 0cec77c

Browse files
committed
fix null content
1 parent f7be54c commit 0cec77c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/main.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,13 @@ int main(int argv, char** args){
180180
//@todo: print the data first in the center
181181
// and then print the table output ..
182182

183+
if(params.content == NULL){
184+
printf("ascii: No Data Is Found; Output Table Is Empty;");
185+
return 0;
186+
}
187+
183188
manipulateData(&params);
184189
printData(params);
185190

186-
// free(params.content);
187-
188191
return 0;
189192
}

0 commit comments

Comments
 (0)