Changeset fbadb37


Ignore:
Timestamp:
Sep 28, 2009, 4:48:21 PM (12 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
1a5db78
Parents:
9cb03bf
Message:
get_zephyr_variable: Actually, the strdup isn’t needed here at all.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • perlglue.xs

    r9cb03bf rfbadb37  
    416416        }
    417417
    418 char *
     418const char *
    419419get_zephyr_variable(name)
    420420        const char *name;
    421         PREINIT:
    422                 char *result;
    423         CODE:
    424                 result = owl_strdup(owl_zephyr_get_variable(name));
    425                 RETVAL = result;
    426         OUTPUT:
    427                 RETVAL
    428         CLEANUP:
    429                 owl_free(result);
     421        CODE:
     422                RETVAL = owl_zephyr_get_variable(name);
     423        OUTPUT:
     424                RETVAL
    430425
    431426MODULE = BarnOwl                PACKAGE = BarnOwl::Internal
Note: See TracChangeset for help on using the changeset viewer.