summaryrefslogtreecommitdiff
path: root/pcomplib.c
diff options
context:
space:
mode:
authorJari Aalto <jari.aalto@cante.net>2004-07-27 13:29:18 +0000
committerJari Aalto <jari.aalto@cante.net>2009-09-12 16:46:56 +0000
commitb80f6443b6b7b620c7272664c66ecb0b120a0998 (patch)
tree9f71c98d8fe8fa0f41d95e1eb4227f32a09d43ca /pcomplib.c
parent7117c2d221b2aed4ede8600f6a36b7c1454b4f55 (diff)
downloadbash-b80f6443b6b7b620c7272664c66ecb0b120a0998.tar.gz
Imported from ../bash-3.0.tar.gz.
Diffstat (limited to 'pcomplib.c')
-rw-r--r--pcomplib.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/pcomplib.c b/pcomplib.c
index aa08fa5d..8db32959 100644
--- a/pcomplib.c
+++ b/pcomplib.c
@@ -32,6 +32,8 @@
# include <unistd.h>
#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;
}