OSDN Git Service

* Fixed bug.
authorAtsushi Konno <konn@users.sourceforge.jp>
Sun, 27 Feb 2011 16:11:49 +0000 (01:11 +0900)
committerAtsushi Konno <konn@users.sourceforge.jp>
Sun, 27 Feb 2011 16:11:49 +0000 (01:11 +0900)
    - X-Chxj-Emoji-Type set NULL

src/chxj_add_device_env.c

index 7448be1..3be9ab0 100644 (file)
@@ -82,7 +82,7 @@ chxj_add_device_env(request_rec *r, device_table *spec)
   /* for LOAD */
   apr_table_setn(r->headers_in, HTTP_X_CHXJ_DPI_WIDTH,    apr_psprintf(r->pool, "%d", spec->dpi_width));
   apr_table_setn(r->headers_in, HTTP_X_CHXJ_DPI_HEIGHT,   apr_psprintf(r->pool, "%d", spec->dpi_heigh));
-  apr_table_setn(r->headers_in, HTTP_X_CHXJ_EMOJI_TYPE,   spec->emoji_type);
+  apr_table_setn(r->headers_in, HTTP_X_CHXJ_EMOJI_TYPE,   (spec->emoji_type) ? spec->emoji_type : "");
 
   apr_table_setn(r->headers_in, HTTP_X_CHXJ_VERSION,  apr_pstrdup(r->pool, PACKAGE_VERSION));