index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Aaron Griffin <aaron@archlinux.org> | 2007-03-04 06:28:48 +0000 |
---|---|---|
committer | Aaron Griffin <aaron@archlinux.org> | 2007-03-04 06:28:48 +0000 |
commit | a7d7c963579176dfefe424931a57e86bc8b51924 (patch) | |
tree | a808cbe75dd7fdc761e7667397efbc43a54437e7 /lib/libalpm/handle.c | |
parent | 549ca632ef08bec2aead4d95f141e28746b35a1e (diff) |
-rw-r--r-- | lib/libalpm/handle.c | 4 |
diff --git a/lib/libalpm/handle.c b/lib/libalpm/handle.c index 6e8e45e3..5ca8258e 100644 --- a/lib/libalpm/handle.c +++ b/lib/libalpm/handle.c @@ -119,8 +119,8 @@ int _alpm_handle_free(pmhandle_t *handle) return(0); } -alpm_cb_log alpm_option_get_logcb() { return handle->logcb; } -alpm_cb_download alpm_option_get_dlcb() { return handle->dlcb; } +alpm_cb_log alpm_option_get_logcb() { return (handle ? handle->logcb : NULL); } +alpm_cb_download alpm_option_get_dlcb() { return (handle ? handle->dlcb : NULL); } unsigned short alpm_option_get_logmask() { return handle->logmask; } const char SYMEXPORT *alpm_option_get_root() { return handle->root; } const char SYMEXPORT *alpm_option_get_dbpath() { return handle->dbpath; } |