From ca43240230d52db3c3ef69e1ad7d86c5f5058b0e Mon Sep 17 00:00:00 2001 From: Kat Richey Date: Sat, 29 Oct 2022 10:02:20 -0500 Subject: [PATCH] Initialize some variables to sane defaults --- cat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cat.c b/cat.c index b9726e1..00f986f 100755 --- a/cat.c +++ b/cat.c @@ -8,9 +8,9 @@ int main(int argc, char *argv[]) { FILE * cur_in_file; int i; char c; - int using_unbuffered_output; + int using_unbuffered_output = 0; - int error_occurred; + int error_occurred = 0; /* Check for -u and use unbuffered output if present