summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeppia <seppia@seppio.fish>2018-07-05 14:25:19 +0200
committerSeppia <seppia@seppio.fish>2018-07-05 14:25:19 +0200
commit55c1f44657cc9be36b6e83a48b62d76706252d8e (patch)
treea0d71bfeef23093df5b7b8c5fa2dd64d8127f3a6
parentd9c0a666055fe951bfad74aea5fd71ecaf55c905 (diff)
downloadonetimebluh-55c1f44657cc9be36b6e83a48b62d76706252d8e.tar.gz
onetimebluh-55c1f44657cc9be36b6e83a48b62d76706252d8e.tar.bz2
onetimebluh-55c1f44657cc9be36b6e83a48b62d76706252d8e.zip
Missing initialization
Inizialized length variable in readInput function.
-rw-r--r--src/onetimebluh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/onetimebluh.c b/src/onetimebluh.c
index 9a05e60..5754fdf 100644
--- a/src/onetimebluh.c
+++ b/src/onetimebluh.c
@@ -181,7 +181,7 @@ int main (int argc, char* argv[]) {
char* readInput (FILE* stdinput, uint64_t size) {
int64_t character;
- uint64_t length;
+ uint64_t length = 0;
char* input;
input = malloc (sizeof (char) * size);