From b80f6443b6b7b620c7272664c66ecb0b120a0998 Mon Sep 17 00:00:00 2001 From: Jari Aalto Date: Tue, 27 Jul 2004 13:29:18 +0000 Subject: Imported from ../bash-3.0.tar.gz. --- pcomplib.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'pcomplib.c') diff --git a/pcomplib.c b/pcomplib.c index aa08fa5..8db3295 100644 --- a/pcomplib.c +++ b/pcomplib.c @@ -32,6 +32,8 @@ # include #endif +#include "bashintl.h" + #include "shell.h" #include "pcomplete.h" @@ -174,18 +176,19 @@ progcomp_insert (cmd, cs) register BUCKET_CONTENTS *item; if (cs == NULL) - programming_error ("progcomp_insert: %s: NULL COMPSPEC", cmd); + programming_error (_("progcomp_insert: %s: NULL COMPSPEC"), cmd); if (prog_completes == 0) progcomp_create (); + cs->refcount++; item = hash_insert (cmd, prog_completes, 0); if (item->data) free_progcomp (item->data); else item->key = savestring (cmd); item->data = cs; - cs->refcount++; + return 1; } -- cgit v1.2.3