Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

trunk/lregex.c: give more informative and easier to search for errors…

… when regcomp(3) fails.
  • Loading branch information...
commit bc2f4db9ed96bacfef295956548c7e4492594368 1 parent fee2a9c
Elliott Hughes authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  lregex.c
2  lregex.c
@@ -324,7 +324,7 @@ static regex_t* compileRegex (const char* const regexp, const char* const flags)
324 324 {
325 325 char errmsg[256];
326 326 regerror (errcode, result, errmsg, 256);
327   - error (WARNING, "%s", errmsg);
  327 + error (WARNING, "regcomp %s: %s", regexp, errmsg);
328 328 regfree (result);
329 329 eFree (result);
330 330 result = NULL;

0 comments on commit bc2f4db

Please sign in to comment.
Something went wrong with that request. Please try again.