summaryrefslogtreecommitdiffstats
path: root/src/pacman/files.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pacman/files.c')
-rw-r--r--src/pacman/files.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pacman/files.c b/src/pacman/files.c
index 7b0c884b..cae7130d 100644
--- a/src/pacman/files.c
+++ b/src/pacman/files.c
@@ -114,7 +114,7 @@ static int files_search(alpm_list_t *syncs, alpm_list_t *targets, int regex) {
char *targ = t->data;
size_t len = strlen(targ);
int exact_file = strchr(targ, '/') != NULL;
- regex_t reg;
+ regex_t reg = {0};
if(exact_file) {
while(len > 1 && targ[0] == '/') {