From 6d646a7de9ccf20ca7cdf1a1e6d085c8d5b48004 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20LAVERGNE?= Date: Mon, 6 Nov 2023 18:38:29 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=20d'une=20s=C3=A9curit=C3=A9=20pour=20la?= =?UTF-8?q?=20recherche?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/search.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/search.c b/src/search.c index 95b9462..31cacdd 100644 --- a/src/search.c +++ b/src/search.c @@ -32,4 +32,6 @@ int searchTab(int targetTab[], int valSearched, int tLog, int *found) return i; } } + *found = 0; + return -1; } \ No newline at end of file