r1538: *** empty log message ***
[uffi.git] / examples / getenv.cl
index c6da2a0c9bff1cefaaa8014f708f7e920feae498..043e7fca72ed6b93d0704d344f0c0dff05ec1e5f 100644 (file)
@@ -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