]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - posix/glob.c
[powerpc] fegetexcept: utilize function instead of duplicating code
[thirdparty/glibc.git] / posix / glob.c
index 511ec4bbc0fa44bc42eda279aad88df974229359..e73e35c510cc1e1f7523ee6556db06920fc2e002 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-2017 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -641,7 +641,8 @@ __glob (const char *pattern, int flags, int (*errfunc) (const char *, int),
                    {
 # if defined HAVE_GETPWNAM_R || defined _LIBC
                      size_t ssize = strlen (s.data) + 1;
-                     err = getpwnam_r (s.data, &pwbuf, s.data + ssize,
+                     char *sdata = s.data;
+                     err = getpwnam_r (sdata, &pwbuf, sdata + ssize,
                                        s.length - ssize, &p);
 # else
                      p = getpwnam (s.data);