mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
common/mlpcre: Add const-correctness to guestfs_int_pcre_sub.
This commit is contained in:
@@ -205,7 +205,7 @@ guestfs_int_pcre_sub (value nv)
|
||||
CAMLlocal1 (strv);
|
||||
int len;
|
||||
CLEANUP_FREE char *str = NULL;
|
||||
struct last_match *m = gl_tls_get (last_match);
|
||||
const struct last_match *m = gl_tls_get (last_match);
|
||||
|
||||
if (m == NULL)
|
||||
raise_pcre_error ("PCRE.sub called without calling PCRE.matches", 0);
|
||||
|
||||
Reference in New Issue
Block a user