X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=examples%2Fgetenv.cl;h=043e7fca72ed6b93d0704d344f0c0dff05ec1e5f;hb=b0843e459729bfab3f5e7de657aeeb62ca302121;hp=c6da2a0c9bff1cefaaa8014f708f7e920feae498;hpb=d088e362ddd9bdd99c2d1815ab87c5328cdc92a3;p=uffi.git diff --git a/examples/getenv.cl b/examples/getenv.cl index c6da2a0..043e7fc 100644 --- a/examples/getenv.cl +++ b/examples/getenv.cl @@ -9,7 +9,7 @@ ;;;; ;;;; Copyright (c) 2002 Kevin M. Rosenberg ;;;; -;;;; $Id: getenv.cl,v 1.5 2002/03/10 11:13:07 kevin Exp $ +;;;; $Id: getenv.cl,v 1.6 2002/03/10 17:42:35 kevin Exp $ ;;;; ;;;; This file is part of UFFI. ;;;; @@ -38,8 +38,7 @@ "Returns an environment variable, or NIL if it does not exist" (check-type key string) (uffi:with-cstring (key-native key) - (let ((value-cstring (c-getenv key-native))) - (uffi:convert-from-cstring value-cstring)))) + (uffi:convert-from-cstring (c-getenv key-native)))) #+test-uffi (progn